sw-collector: Proper cleanup if DB query fails in check operation

This commit is contained in:
Tobias Brunner
2018-05-23 20:25:50 +02:00
parent d837d0b339
commit 887885f33b
+1
View File
@@ -633,6 +633,7 @@ static int check(sw_collector_db_t *db)
e = db->create_sw_enumerator(db, SW_QUERY_ALL, NULL);
if (!e)
{
table->destroy_function(table, (void*)free_entry);
return EXIT_FAILURE;
}
while (e->enumerate(e, &sw_id, &name, &package, &version, &installed))