From: raspa0 Date: Thu, 25 Aug 2016 08:58:22 +0000 (+0200) Subject: fix memleak in pkcs11_get_random X-Git-Tag: gnutls_3_5_4~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58f8b90025424bc899c5dc390afbdbe8306fe899;p=thirdparty%2Fgnutls.git fix memleak in pkcs11_get_random --- 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; }