From f442ba109d1b2b4518703b5147c83dc493a6f336 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Mon, 17 Oct 2016 11:32:48 +0900 Subject: [PATCH] Fix double free issue Change-Id: I577fe595d58e157b2a3d60aaef755eb51a748032 Signed-off-by: Hwankyu Jhun --- src/app_info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app_info.c b/src/app_info.c index 7c89093..a70407a 100644 --- a/src/app_info.c +++ b/src/app_info.c @@ -244,8 +244,8 @@ API int app_info_create(const char *app_id, app_info_h *app_info) if (retval < 0) { free(info); pkgmgrinfo_pkginfo_destroy_pkginfo(pkginfo); - app_manager_error(APP_MANAGER_ERROR_NO_SUCH_APP, __FUNCTION__, NULL); - } + return app_manager_error(APP_MANAGER_ERROR_NO_SUCH_APP, __FUNCTION__, NULL); + } if (pkgmgrinfo_appinfo_get_usr_appinfo(main_appid, getuid(), &appinfo)) { free(info); pkgmgrinfo_pkginfo_destroy_pkginfo(pkginfo); -- 2.34.1