Skip to content

Commit c1981ea

Browse files
committed
fixup! Make crypto.c compile/link with OpenSSL 3
Don't leak context
1 parent 7c4876e commit c1981ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crypto.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,8 @@ hmac_md5(unsigned char *text, int text_len, unsigned char *key, int key_len,
324324
EVP_DigestUpdate(context, digest, 16);
325325
/* Finish up second pass. */
326326
EVP_DigestFinal_ex(context, digest, NULL);
327+
328+
EVP_MD_CTX_free(context);
327329
#else
328330
/*
329331
* perform inner MD5

0 commit comments

Comments
 (0)