summaryrefslogtreecommitdiff
path: root/p11-kit
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2018-03-29 15:54:35 +0200
committerDaiki Ueno <dueno@redhat.com>2018-03-29 15:54:35 +0200
commitba6ebb05fc0c8010d8510984ce3c5f908edf13b6 (patch)
tree9fb75c5abb923e66acd7a8bf1b70c359a60b8fc7 /p11-kit
parent1ca877e3d3b1315ee9358f7e3c9096e10e14486e (diff)
modules: Fix memleak in re-initialization case
Diffstat (limited to 'p11-kit')
-rw-r--r--p11-kit/modules.c1
1 files changed, 1 insertions, 0 deletions
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];
}