Change-Id: Id14976cdc15b05708743112fb48331657b303ec8
if ((err == MS_MEDIA_ERR_NONE) && (storage_id != NULL)) {
data = g_new0(ms_block_info_s, 1);
data->mount_path = g_strdup(mount_path);
- data->mount_uuid = g_strdup(storage_id);
+ data->mount_uuid = storage_id;
*dev_list = g_slist_append(*dev_list, data);
} else {
MS_DBG_ERR("ms_get_added_stroage_path failed [%d]", err);
END:
MS_SAFE_FREE(disc_type);
MS_SAFE_FREE(disc_path);
+ g_free(storage_path);
}
#endif
int ms_write_media_server_status(void)
ms_sys_get_uid(&uid);
ms_user_get_internal_root_path(uid, &internal_path);
ms_send_storage_scan_request(internal_path, INTERNAL_STORAGE_ID, MS_SCAN_PART, uid);
+ g_free(internal_path);
#endif
#ifdef _USE_SENIOR_MODE