summaryrefslogtreecommitdiff
path: root/testcode/unitmain.c
diff options
context:
space:
mode:
Diffstat (limited to 'testcode/unitmain.c')
-rw-r--r--testcode/unitmain.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/testcode/unitmain.c b/testcode/unitmain.c
index 57883d183b9f..fecde80cc3d1 100644
--- a/testcode/unitmain.c
+++ b/testcode/unitmain.c
@@ -905,6 +905,9 @@ main(int argc, char* argv[])
#ifdef CLIENT_SUBNET
ecs_test();
#endif /* CLIENT_SUBNET */
+ if(log_get_lock()) {
+ lock_quick_destroy((lock_quick_type*)log_get_lock());
+ }
checklock_stop();
printf("%d checks ok.\n", testcount);
#ifdef HAVE_SSL