]> granicus.if.org Git - p11-kit/commitdiff
modules: Fix memleak in re-initialization case
authorDaiki Ueno <dueno@redhat.com>
Thu, 29 Mar 2018 13:54:35 +0000 (15:54 +0200)
committerDaiki Ueno <dueno@redhat.com>
Thu, 29 Mar 2018 13:54:35 +0000 (15:54 +0200)
p11-kit/modules.c

index 96baa44a1eb1b3662d861a41ae6b6d03876e1c0e..da36e6bd7106d6a6770b34bcec59acd8a5af37db 100644 (file)
@@ -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];
                }