diff options
author | Peter Wu <peter@lekensteyn.nl> | 2018-12-15 22:01:10 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2018-12-15 22:01:10 +0100 |
commit | 26209fff5bce1bf3c9952c005f1ac726f3f4ebd4 (patch) | |
tree | 2d81f50550fbd7ea793412b2fe4c8536ec1c7cd9 /lib | |
parent | e32724e3924da84374165b4841cc83dc3fc39351 (diff) | |
download | gnutls-26209fff5bce1bf3c9952c005f1ac726f3f4ebd4.tar.gz |
pkcs11: fix memleak in gnutls_pkcs11_token_get_ptr
find_token_modname_cb uses p11_kit_config_option to retrieve the module
name, but its return value (stored in tn.modname) must be freed.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pkcs11.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pkcs11.c b/lib/pkcs11.c index 0a322bc360..c974565830 100644 --- a/lib/pkcs11.c +++ b/lib/pkcs11.c @@ -2608,6 +2608,7 @@ gnutls_pkcs11_token_get_ptr(const char *url, void **ptr, unsigned long *slot_id, ret = 0; cleanup: + free(tn.modname); p11_kit_uri_free(info); return ret; } |