Change-Id: Iacbdfea010bdabc8eeee5c4ab5f784add92c272c
}
g_free(update_path);
+ update_path = NULL;
g_free(extract_data);
+ extract_data = NULL;
g_free(storage_id);
+ storage_id = NULL;
__msc_del_cur_extract_item();
__msc_del_cancel_extract_item();
}
NEXT:
g_free(update_path);
+ update_path = NULL;
if (power_off2) {
MS_DBG_ERR("power off");
}
g_free(extract_data);
+ extract_data = NULL;
MS_DBG_WARN("STORAGE EXTRACT END[%d]", ret);
usleep(SCAN_SLEEP_TIME);
if (*item != NULL) {
g_free((*item)->path);
g_free(*item);
+ *item = NULL;
}
}
msc_send_result(ret, scan_data);
g_free(scan_data);
+ scan_data = NULL;
g_free(storage_id);
+ storage_id = NULL;
g_free(folder_uuid);
+ folder_uuid = NULL;
g_directory_scan_processing2 = DIR_SCAN_NON_SCAN;
__msc_del_cur_scan_item();
__msc_del_blocked_path();
g_free(update_path);
+ update_path = NULL;
if (power_off2) {
MS_DBG_ERR("power off");
msc_send_result(ret, scan_data);
g_free(scan_data);
+ scan_data = NULL;
MS_DBG_WARN("STORAGE SCAN END[%d]", ret);
__msc_clear_file_list(path_array);
g_free(file_path);
+ file_path = NULL;
g_free(register_data);
+ register_data = NULL;
usleep(SCAN_SLEEP_TIME);
} /*thread while*/
if (*item != NULL) {
g_free((*item)->path);
g_free(*item);
+ *item = NULL;
}
}