Fix static analysis issue 43/115943/1
authorJunghyun Yeon <jungh.yeon@samsung.com>
Tue, 21 Feb 2017 04:44:10 +0000 (13:44 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Wed, 22 Feb 2017 06:41:19 +0000 (15:41 +0900)
Change-Id: Ibc965dd33ee141bf3e2a8ea35356228a1b68a5d2
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/pkgmgrinfo_pkginfo.c

index 64f8564..e955d53 100644 (file)
@@ -454,6 +454,7 @@ static int _pkginfo_get_packages(uid_t uid, const char *locale,
                                        (gconstpointer)info->package)) {
                        free(info->package);
                        free(info);
+                       info = NULL;
                        continue;
                }
                _save_column_str(stmt, idx++, &info->version);