summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2010-10-22 21:22:58 +0100
committerLars Wirzenius <liw@liw.fi>2010-10-22 21:22:58 +0100
commit5f6da2aaec32724df4a6b9d26f37e4a19e3112e1 (patch)
tree8bdfa4ade74f89853146c3b190cd22c5c0dbaf1b
parente47f67c8eb667b9507e1978968df6d111025b81d (diff)
downloaddynstr-5f6da2aaec32724df4a6b9d26f37e4a19e3112e1.tar.gz
Fix memory leak in test_alloc_does_not_call_error_handler.
-rw-r--r--unittests.c1
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;
}