[test-commodities] clean up commodities

This commit is contained in:
Christopher Lam 2023-09-18 22:27:03 +08:00
parent fccf0b48c4
commit 01f27e9c53

View File

@ -136,6 +136,8 @@ test_commodity(void)
do_test( do_test(
gnc_commodity_equiv(com, com2), "commodity equiv"); gnc_commodity_equiv(com, com2), "commodity equiv");
gnc_commodity_destroy (com2);
gnc_commodity_destroy (com);
qof_book_destroy (book); qof_book_destroy (book);
} }
@ -188,6 +190,8 @@ test_commodity(void)
tbl, gnc_commodity_get_namespace(coms[i])), tbl, gnc_commodity_get_namespace(coms[i])),
"test have namespace"); "test have namespace");
} }
gnc_commodity_table_destroy (tbl);
qof_book_destroy (book);
} }
} }