From: Michael R Sweet Date: Mon, 16 Dec 2024 17:29:10 +0000 (-0500) Subject: Fix memory leak in OpenSSL hashing code. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f903bfec2f7ef2f173dc60e3792273034fe4624;p=thirdparty%2Fcups.git Fix memory leak in OpenSSL hashing code. --- diff --git a/cups/hash.c b/cups/hash.c index 6c4efcb3ce..ea7378d0c6 100644 --- a/cups/hash.c +++ b/cups/hash.c @@ -253,6 +253,7 @@ hash_data(const char *algorithm, // I - Algorithm if (b && blen) EVP_DigestUpdate(ctx, b, blen); EVP_DigestFinal(ctx, hashtemp, &hashlen); + EVP_MD_CTX_free(ctx); if (hashlen > hashsize) goto too_small;