summaryrefslogtreecommitdiff
path: root/src/pkcs11.c
diff options
context:
space:
mode:
authorraspa0 <raspa0@protonmail.com>2016-08-25 10:58:22 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-08-25 17:47:52 +0200
commit58f8b90025424bc899c5dc390afbdbe8306fe899 (patch)
tree6416194448e9bf75ea56b7d81528b775ab3bfd57 /src/pkcs11.c
parent6a8ba816674ee6750ea9fcce6f732758bc3d3b1e (diff)
downloadgnutls-58f8b90025424bc899c5dc390afbdbe8306fe899.tar.gz
fix memleak in pkcs11_get_random
Diffstat (limited to 'src/pkcs11.c')
-rw-r--r--src/pkcs11.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkcs11.c b/src/pkcs11.c
index 38dff72753..6d9713033c 100644
--- a/src/pkcs11.c
+++ b/src/pkcs11.c
@@ -1187,6 +1187,7 @@ pkcs11_get_random(FILE * outfile, const char *url, unsigned bytes,
}
fwrite(output, 1, bytes, outfile);
+ free(output);
return;
}