Free pkg_app_info memory 18/262918/2 accepted/tizen/6.5/unified/20211028.094041 accepted/tizen/unified/20210826.024533 submit/tizen/20210825.084401 submit/tizen_6.5/20211028.161601 tizen_6.5.m2_release
authorLohit Agarwalla <l.agarwalla@samsung.com>
Mon, 23 Aug 2021 11:53:50 +0000 (17:23 +0530)
committerLohit Agarwalla <l.agarwalla@samsung.com>
Tue, 24 Aug 2021 12:14:17 +0000 (17:44 +0530)
Change-Id: I837c2d692c63196ec7afce92e702c70f43eaa099
Signed-off-by: Lohit Agarwalla <l.agarwalla@samsung.com>
server/fido_app_id_handler.c

index 0be41e2..f845947 100755 (executable)
@@ -520,6 +520,7 @@ __get_tz_facet_id_of_caller(const char *caller_app_id, GDBusMethodInvocation *in
 
        if (ret < 0) {
                _ERR("Get Pkg Info Failed failed [%d]", ret);
+               pkgmgrinfo_appinfo_destroy_appinfo(pkg_app_info);
                return NULL;
        }
 
@@ -540,6 +541,7 @@ __get_tz_facet_id_of_caller(const char *caller_app_id, GDBusMethodInvocation *in
        if (ret != PMINFO_R_OK) {
                _ERR("");
                pkgmgrinfo_pkginfo_destroy_pkginfo(handle);
+               pkgmgrinfo_appinfo_destroy_appinfo(pkg_app_info);
                return NULL;
        }