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' --- tools/tests/test-x509.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/tests/test-x509.c') diff --git a/tools/tests/test-x509.c b/tools/tests/test-x509.c index f3585f1..7cf9787 100644 --- a/tools/tests/test-x509.c +++ b/tools/tests/test-x509.c @@ -135,6 +135,7 @@ test_file (CuTest *tc) test_check_file (tc, test.directory, "extract.cer", SRCDIR "/files/cacert3.der"); + free (test.ex.destination); teardown (tc); } @@ -166,6 +167,7 @@ test_file_multiple (CuTest *tc) test_check_file (tc, test.directory, "extract.cer", SRCDIR "/files/cacert3.der"); + free (test.ex.destination); teardown (tc); } @@ -192,6 +194,7 @@ test_file_without (CuTest *tc) p11_message_loud (); + free (test.ex.destination); teardown (tc); } -- cgit v1.1