Fix double free issue 13/92413/1 accepted/tizen/3.0/common/20161114.105137 accepted/tizen/3.0/ivi/20161028.123016 accepted/tizen/3.0/mobile/20161028.122312 accepted/tizen/3.0/tv/20161028.122607 accepted/tizen/3.0/wearable/20161028.122823 accepted/tizen/common/20161017.170247 accepted/tizen/ivi/20161017.081556 accepted/tizen/mobile/20161017.081458 accepted/tizen/tv/20161017.081512 accepted/tizen/wearable/20161017.081532 submit/tizen/20161017.041518 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.082323 submit/tizen_3.0_common/20161104.104000
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 17 Oct 2016 02:32:48 +0000 (11:32 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 17 Oct 2016 02:32:48 +0000 (11:32 +0900)
Change-Id: I577fe595d58e157b2a3d60aaef755eb51a748032
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/app_info.c

index 7c89093..a70407a 100644 (file)
@@ -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);
-       }\r
+               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);