8000 Fixed memory leak in openssl fips modes · libgit2/libgit2@4e8717f · GitHub
[go: up one dir, main page]

Skip to content

Commit 4e8717f

Browse files
author
wklatka
authored
Fixed memory leak in openssl fips modes
1 parent 21a351b commit 4e8717f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/util/hash/openssl.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,6 @@ int git_hash_sha1_final(unsigned char *out, git_hash_sha1_ctx *ctx)
193193
return -1;
194194
}
195195

196-
ctx->c = NULL;
197-
198196
return 0;
199197
}
200198

@@ -346,8 +344,6 @@ int git_hash_sha256_final(unsigned char *out, git_hash_sha256_ctx *ctx)
346344
return -1;
347345
}
348346

349-
ctx->c = NULL;
350-
351347
return 0;
352348
}
353349

0 commit comments

Comments
 (0)
0