Fix memory leak 75/238675/3
authorIlho Kim <ilho159.kim@samsung.com>
Thu, 16 Jul 2020 07:23:39 +0000 (16:23 +0900)
committerHwanKyu Jhun <h.jhun@samsung.com>
Wed, 22 Jul 2020 01:48:14 +0000 (01:48 +0000)
pkgmgr_installer's member pkgs should be released

Change-Id: Idc55fc954bb3f98a67ef5a1beba77bdf4bfaba1b
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
installer/pkgmgr_installer.c

index 6a30c92..c1abef0 100644 (file)
@@ -407,6 +407,9 @@ API int pkgmgr_installer_free(pkgmgr_installer *pi)
                g_object_unref(pi->conn);
        }
 
+       if (pi->pkgs)
+               g_list_free_full(pi->pkgs, free);
+
        if (pi->pkg_list)
                g_hash_table_destroy(pi->pkg_list);