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);
_test_read_password(&data, f);
CuAssertPtrNotNull(tc, f->_password);
mstream_done(&data.strm);
gamedata_done(&data);
CuAssertTrue(tc, checkpasswd(f, "secret"));
CuAssertIntEquals(tc, 0, remove(pwfile));