From e876f1f7fb395657ee05cbd82a146e6b1735469c Mon Sep 17 00:00:00 2001 From: Lohit Agarwalla Date: Mon, 23 Aug 2021 17:23:50 +0530 Subject: [PATCH] Free pkg_app_info memory Change-Id: I837c2d692c63196ec7afce92e702c70f43eaa099 Signed-off-by: Lohit Agarwalla --- server/fido_app_id_handler.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.7.4