Fix memory leak 50/265750/2
authorIlho Kim <ilho159.kim@samsung.com>
Thu, 28 Oct 2021 04:51:10 +0000 (13:51 +0900)
committerHwanKyu Jhun <h.jhun@samsung.com>
Thu, 28 Oct 2021 05:57:45 +0000 (05:57 +0000)
res_type, res_version should be free

Change-Id: Ia32662389504fced7b8bd63a1f0fd5898e0a0237
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
src/pkgmgrinfo_basic.c

index 3e95cdd..8aafaca 100644 (file)
@@ -549,6 +549,10 @@ API void pkgmgrinfo_basic_free_package(package_x *package)
                free((void *)package->use_system_certs);
        if (package->locale)
                free((void *)package->locale);
+       if (package->res_type)
+               free((void *)package->res_type);
+       if (package->res_version)
+               free((void *)package->res_version);
 
        /*Free Icon*/
        g_list_free_full(package->icon, __ps_free_icon);