diff --git a/src/reports.test.c b/src/reports.test.c index dd2c544eb..e00e50a8b 100644 --- a/src/reports.test.c +++ b/src/reports.test.c @@ -405,7 +405,8 @@ static void test_write_spell_syntax(CuTest *tc) { set_parameter(spell, "kc+"); check_spell_syntax(tc, "kc+", &spell, " ZAUBERE \"Testzauber\" ( REGION | EINHEIT [ ...] | SCHIFF \n [ ...] | BURG [ ...] )"); - + spellbook_clear(spell.spb); + free(spell.spb); test_cleanup(); } diff --git a/src/util/gamedata.test.c b/src/util/gamedata.test.c index b28066b97..630ebc773 100644 --- a/src/util/gamedata.test.c +++ b/src/util/gamedata.test.c @@ -14,6 +14,7 @@ static void test_gamedata(CuTest * tc) data = gamedata_open("test.dat", "rb", 0); CuAssertPtrNotNull(tc, data); gamedata_close(data); + free(data); CuAssertIntEquals(tc, 0, remove("test.dat")); }