summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-05-03 11:26:04 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-05-03 13:12:16 +0200
commita38a64314994d43ee9c32018c6d5d862d2a92c17 (patch)
tree0988a53f21f2391bcc61c93ca5e3ec19743688e3
parent645eb5efdedd519a4e88abd4df47b6ad4c20da01 (diff)
downloadgnutls-a38a64314994d43ee9c32018c6d5d862d2a92c17.tar.gz
pkcs11: find_ext_cb: eliminated memory leak
-rw-r--r--lib/pkcs11x.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pkcs11x.c b/lib/pkcs11x.c
index 87e22cc8f0..01493b48b5 100644
--- a/lib/pkcs11x.c
+++ b/lib/pkcs11x.c
@@ -219,6 +219,7 @@ find_ext_cb(struct pkcs11_session_info *sinfo,
if (_gnutls_x509_decode_ext(&ext, &find_data->exts[find_data->exts_size]) == 0) {
find_data->exts_size++;
}
+ gnutls_free(ext.data);
}
}