if (new_array[i] == NULL) {
_E("Out of memory");
__free_path(new_array, i);
+ __free_path(mnt_path, 2);
return;
}
}
if (new_array[len] == NULL) {
_E("Out of memory");
__free_path(new_array, len);
+ __free_path(mnt_path, 2);
return;
}
bundle_del(kb, AUL_K_TEP_PATH);
if (mnt_path == NULL)
return;
- if (!__is_unmountable(appid, mnt_path[0]))
+ if (!__is_unmountable(appid, mnt_path[0])) {
+ __free_path(mnt_path, 2);
return;
+ }
g_hash_table_remove(mount_point_hash, mnt_path[0]);
ret = amd_signal_send_tep_unmount(mnt_path[0]);