forked from github/server
memory leak: clean up mstream after test
This commit is contained in:
parent
b81f9db074
commit
637054bc22
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue