diff options
author | Lars Wirzenius <liw@liw.fi> | 2010-10-22 21:22:58 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2010-10-22 21:22:58 +0100 |
commit | 5f6da2aaec32724df4a6b9d26f37e4a19e3112e1 (patch) | |
tree | 8bdfa4ade74f89853146c3b190cd22c5c0dbaf1b | |
parent | e47f67c8eb667b9507e1978968df6d111025b81d (diff) | |
download | dynstr-5f6da2aaec32724df4a6b9d26f37e4a19e3112e1.tar.gz |
Fix memory leak in test_alloc_does_not_call_error_handler.
-rw-r--r-- | unittests.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unittests.c b/unittests.c index 81753c9..4f19c8b 100644 --- a/unittests.c +++ b/unittests.c @@ -126,6 +126,7 @@ static int test_alloc_does_not_call_error_handler(void) dynstr_set_malloc(malloc); dynstr = dynstr_new_empty(); FAIL_UNLESS_EQUAL(error_handler_called, false); + dynstr_free(dynstr); return true; } |