From 4b09d2b4d3958b58b020c1ae21fcd932e1eb6c37 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 20 Mar 2013 22:20:25 +0100 Subject: Fix memory leaks reported by 'make leakcheck' --- common/tests/test-hash.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/tests/test-hash.c') diff --git a/common/tests/test-hash.c b/common/tests/test-hash.c index d6d7990..c8694e1 100644 --- a/common/tests/test-hash.c +++ b/common/tests/test-hash.c @@ -89,6 +89,8 @@ test_sha1_long (CuTest *cu) p11_hash_sha1 (checksum, input, 1000000, NULL); CuAssertTrue (cu, memcmp (expected, checksum, P11_HASH_SHA1_LEN) == 0); + + free (input); } const char *md5_input[] = { -- cgit v1.1