From ba6ebb05fc0c8010d8510984ce3c5f908edf13b6 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Thu, 29 Mar 2018 15:54:35 +0200 Subject: modules: Fix memleak in re-initialization case --- p11-kit/modules.c | 1 + 1 file changed, 1 insertion(+) diff --git a/p11-kit/modules.c b/p11-kit/modules.c index 96baa44..da36e6b 100644 --- a/p11-kit/modules.c +++ b/p11-kit/modules.c @@ -2134,6 +2134,7 @@ p11_kit_modules_initialize (CK_FUNCTION_LIST **modules, name = p11_kit_module_get_name (modules[i]); p11_message ("%s: module was already initialized", name ? name : "(unknown)"); + free (name); } modules[out] = modules[i]; } -- cgit v1.1