Fix memory leaks 97/112897/1
authorJaganmohan K <j.kanakala@samsung.com>
Fri, 20 Jan 2017 06:23:19 +0000 (11:53 +0530)
committerSangyoon Jang <s89.jang@samsung.com>
Fri, 3 Feb 2017 07:23:17 +0000 (23:23 -0800)
Signed-off-by: Jaganmohan K <j.kanakala@samsung.com>
Change-Id: I59143434670f6c3213a9a843184c8facd3b35f42
(cherry picked from commit 029aa118c207c1c1163dcb04f24d14f83c65ccd6)

src/pkgmgrinfo_certinfo.c

index 4fceee2..48ca571 100644 (file)
@@ -387,6 +387,8 @@ static int _pkginfo_get_certinfo(const char *pkgid, pkgmgr_certinfo_x *info)
                return ret;
        }
 
+       sqlite3_close_v2(db);
+
        return PMINFO_R_OK;
 }