From 637054bc22d44f4d1b7457ca493cb9d576393de2 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 11 Mar 2016 11:33:45 +0100 Subject: [PATCH] memory leak: clean up mstream after test --- src/kernel/save.test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/kernel/save.test.c b/src/kernel/save.test.c index 83866273b..53dcfe5d9 100644 --- a/src/kernel/save.test.c +++ b/src/kernel/save.test.c @@ -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));