From: Lohit Agarwalla Date: Mon, 23 Aug 2021 11:53:50 +0000 (+0530) Subject: Free pkg_app_info memory X-Git-Tag: accepted/tizen/6.5/unified/20211028.094041^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e876f1f7fb395657ee05cbd82a146e6b1735469c;p=platform%2Fcore%2Faccount%2Ffido-client.git Free pkg_app_info memory Change-Id: I837c2d692c63196ec7afce92e702c70f43eaa099 Signed-off-by: Lohit Agarwalla --- diff --git a/server/fido_app_id_handler.c b/server/fido_app_id_handler.c index 0be41e2..f845947 100755 --- a/server/fido_app_id_handler.c +++ b/server/fido_app_id_handler.c @@ -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; }