summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjunkyu han <junkyu.han@samsung.com>2017-09-26 19:13:52 +0900
committerjunkyu han <junkyu.han@samsung.com>2017-09-26 19:24:39 +0900
commit6e2a7661d98bb99eabc999bf4b5f5c2c12d71554 (patch)
tree18393ad86b96a8520d0defbd63bce9a22fa6fe78
parent009babbba42d257e8ed6c01d09b021257c6db318 (diff)
downloadw3-home-6e2a7661d98bb99eabc999bf4b5f5c2c12d71554.tar.gz
w3-home-6e2a7661d98bb99eabc999bf4b5f5c2c12d71554.tar.bz2
w3-home-6e2a7661d98bb99eabc999bf4b5f5c2c12d71554.zip
Change-Id: I8c4a5e18d468ca37e09956ceecbce6236cef8f77
-rwxr-xr-xsrc/apps/apps_data_package_manager.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/apps/apps_data_package_manager.c b/src/apps/apps_data_package_manager.c
index e9b88e4..7038a82 100755
--- a/src/apps/apps_data_package_manager.c
+++ b/src/apps/apps_data_package_manager.c
@@ -335,9 +335,13 @@ static bool __fill_appinfo(app_info_h app_handle, APP_INFO **item)
goto __fail;
}
+ package_info_destroy(p_handle);
return true;
__fail:
+ if (p_handle)
+ package_info_destroy(p_handle);
+
apps_data_app_info_free_item(new_item);
*item = NULL;