diff --git a/crypto/hmac/hmac.c b/crypto/hmac/hmac.c index b1f7317d7..592546781 100644 --- a/crypto/hmac/hmac.c +++ b/crypto/hmac/hmac.c @@ -251,6 +251,7 @@ unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len, HMAC_CTX_cleanup(&c); return md; err: + HMAC_CTX_cleanup(&c); return NULL; }