From bcf2c4e0a24303f976dbedc0ef0a564b9808a989 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Tue, 27 Feb 2018 16:05:41 +0100 Subject: test: Improve temporary directory handling --- trust/test-module.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'trust') diff --git a/trust/test-module.c b/trust/test-module.c index e05ea22..1e8d812 100644 --- a/trust/test-module.c +++ b/trust/test-module.c @@ -119,6 +119,8 @@ teardown (void *unused) rv = test.module->C_Finalize (NULL); assert (rv == CKR_OK); + if (test.directory) + p11_test_directory_delete (test.directory); free (test.directory); memset (&test, 0, sizeof (test)); -- cgit v1.1