From fe8b77753c41465b0a70e317c0ab4bd18c14777a Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 22 Mar 2005 17:29:36 +0000 Subject: [PATCH] Fix memory leak. --- fips/fingerprint.sha1 | 2 +- fips/fips.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/fips/fingerprint.sha1 b/fips/fingerprint.sha1 index 8c5b070d2e..1af4792eb1 100644 --- a/fips/fingerprint.sha1 +++ b/fips/fingerprint.sha1 @@ -1,4 +1,4 @@ -HMAC-SHA1(fips.c)= f764539b7d09141738d86c9e0442de990ab8ae3f +HMAC-SHA1(fips.c)= 4eef19c535c1f3deacdf93eb806479ea3b374115 HMAC-SHA1(fips_err_wrapper.c)= d3e2be316062510312269e98f964cb87e7577898 HMAC-SHA1(fips.h)= fbedad5dbd8986ddd521ea576bf2a20e6881540a HMAC-SHA1(fips_err.h)= 4a73f2a88e206f1f88edfd9b26609a0eed818491 diff --git a/fips/fips.c b/fips/fips.c index 816277e49f..7ecba57f70 100644 --- a/fips/fips.c +++ b/fips/fips.c @@ -160,6 +160,7 @@ static int FIPS_check_exe(const char *path) } fclose(f); HMAC_Final(&hmac,mdbuf,&n); + HMAC_CTX_cleanup(&hmac); BIO_snprintf(p2,sizeof p2,sha1_fmt,path); f=fopen(p2,"rb"); if(!f || fread(buf,1,20,f) != 20) -- 2.25.1