memory leak: clean up mstream after test

This commit is contained in:
Enno Rehling 2016-03-11 11:33:45 +01:00
parent b81f9db074
commit 637054bc22
1 changed files with 1 additions and 0 deletions

View File

@ -296,6 +296,7 @@ static void test_read_password_external(CuTest *tc) {
fclose(F); fclose(F);
_test_read_password(&data, f); _test_read_password(&data, f);
CuAssertPtrNotNull(tc, f->_password); CuAssertPtrNotNull(tc, f->_password);
mstream_done(&data.strm);
gamedata_done(&data); gamedata_done(&data);
CuAssertTrue(tc, checkpasswd(f, "secret")); CuAssertTrue(tc, checkpasswd(f, "secret"));
CuAssertIntEquals(tc, 0, remove(pwfile)); CuAssertIntEquals(tc, 0, remove(pwfile));