From a220f7154b0c65e3742130d9fe563fcee0f473d5 Mon Sep 17 00:00:00 2001 From: Junghyun Yeon Date: Wed, 7 Dec 2016 13:56:21 +0900 Subject: [PATCH] Fix possible double-free issue Change-Id: I34831c8038e1e63d75ee46e4033930fab663cb26 Signed-off-by: Junghyun Yeon --- src/pkgmgrinfo_appinfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pkgmgrinfo_appinfo.c b/src/pkgmgrinfo_appinfo.c index 7f32a20..c083171 100644 --- a/src/pkgmgrinfo_appinfo.c +++ b/src/pkgmgrinfo_appinfo.c @@ -589,6 +589,7 @@ static int _appinfo_get_applications(uid_t db_uid, uid_t uid, (gconstpointer)info->appid)) { free(info->appid); free(info); + info = NULL; continue; } _save_column_str(stmt, idx++, &info->component); -- 2.7.4