Add db statement destroy calls
authorTomas Mlcoch <tmlcoch@redhat.com>
Fri, 9 Nov 2012 12:21:41 +0000 (13:21 +0100)
committerTomas Mlcoch <tmlcoch@redhat.com>
Fri, 9 Nov 2012 12:21:41 +0000 (13:21 +0100)
src/createrepo_c.c

index a6f9dad..e319fc6 100644 (file)
@@ -1049,6 +1049,10 @@ main(int argc, char **argv)
         cr_dbinfo_update(fil_db, fil_xml_rec->checksum, NULL);
         cr_dbinfo_update(oth_db, oth_xml_rec->checksum, NULL);
 
+        cr_destroy_primary_db_statements(pri_statements);
+        cr_destroy_filelists_db_statements(fil_statements);
+        cr_destroy_other_db_statements(oth_statements);
+
         cr_close_primary_db(pri_db, NULL);
         cr_close_filelists_db(fil_db, NULL);
         cr_close_other_db(oth_db, NULL);