char path[256] = {'\0',};
snprintf(path, 256, "%s/%s.xml", dir_assistant_info, pkgid);
- if (0 == access(path, F_OK)) {
- LOGD("Remove assistant info xml(%s)", path);
- if (0 != remove(path)) {
- LOGE("[ERROR] Fail to remove assistant info xml(%s)", path);
- }
+ LOGD("Remove assistant info xml(%s)", path);
+ if (0 != remove(path)) {
+ LOGE("[ERROR] Fail to remove assistant info xml(%s)", path);
}
FREE(dir_assistant_info)
if (NULL != home_dir) {
LOGD("[DEBUG] uid(%d), gid(%d), user_type(%s), home_dir(%s)", uid, gid, user_type, home_dir);
+ FREE(g_dir_config_base)
+ FREE(g_dir_home)
+ FREE(g_dir_assistant_base)
+ FREE(g_dir_assistant_info)
g_dir_config_base = (char*)calloc(strlen(home_dir) + 23, sizeof(char));
g_dir_home = (char*)calloc(strlen(home_dir) + 26, sizeof(char));
g_dir_assistant_base = (char*)calloc(strlen(home_dir) + 30, sizeof(char));
printf("[Parser Debug][DEBUG] TZ_USER_HOME: %s", tzplatform_mkstr(TZ_USER_HOME, "/"));
}
+ FREE(g_dir_assistant_info);
g_dir_assistant_info = strdup(MA_ASSISTANT_INFO);
if (NULL == g_dir_assistant_info) {
LOGE("[ERROR] Fail to allocate memory");