fixed memory leak
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 12 Nov 2012 12:08:58 +0000 (13:08 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 12 Nov 2012 12:08:58 +0000 (13:08 +0100)
src/libimcv/plugins/imv_os/imv_os_database.c

index 73b94ac..0048062 100644 (file)
@@ -113,6 +113,7 @@ METHOD(imv_os_database_t, check_packages, status_t,
                                DBG2(DBG_IMV, "package '%s' (%.*s) not found",
                                         package, version.len, version.ptr);
                        }
+                       free(package);
                        e->destroy(e);
                        continue;
                }