Free memory leak in case of error. 62/262062/2 accepted/tizen/unified/20210805.082435 submit/tizen/20210802.130732
authorLohit Agarwalla <l.agarwalla@samsung.com>
Mon, 2 Aug 2021 06:50:00 +0000 (12:20 +0530)
committerLohit Agarwalla <l.agarwalla@samsung.com>
Mon, 2 Aug 2021 09:21:10 +0000 (14:51 +0530)
Change-Id: I824db9b9ac251e539189b643835c67ccb13d4815
Signed-off-by: Lohit Agarwalla <l.agarwalla@samsung.com>
server/fido_app_id_handler.c

index 6174b0e..0be41e2 100755 (executable)
@@ -555,6 +555,7 @@ __get_tz_facet_id_of_caller(const char *caller_app_id, GDBusMethodInvocation *in
                _ERR("");
                pkgmgrinfo_pkginfo_destroy_certinfo(cert_handle);
                pkgmgrinfo_pkginfo_destroy_pkginfo(handle);
+               pkgmgrinfo_appinfo_destroy_appinfo(pkg_app_info);
                return NULL;
        }