Fix double free 85/105685/1
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 19 Dec 2016 08:28:29 +0000 (17:28 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 19 Dec 2016 09:25:27 +0000 (18:25 +0900)
Change-Id: I5f6e7698482750aeb523e93d48dca02cc0b61a8b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/pkgmgrinfo_appinfo.c

index 5f44f9c..fe57406 100644 (file)
@@ -1322,7 +1322,7 @@ static int _appinfo_get_filtered_foreach_appinfo(uid_t uid,
        if (ret != PMINFO_R_OK) {
                g_hash_table_destroy(list);
                free(locale);
-               if (filter != NULL)
+               if (filter == NULL)
                        pkgmgrinfo_pkginfo_filter_destroy(tmp_filter);
                return ret;
        }