From e65855c36f354e62f6368266abc5a1604d21c385 Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Wed, 15 Apr 2015 15:28:16 -0400 Subject: [PATCH] Fix memory leak in ecdsa_test. This one really needs to get C++'d. Change-Id: I088f3b77867af0cfc2da8324ba87954ef4cbba74 Reviewed-on: https://boringssl-review.googlesource.com/4350 Reviewed-by: Adam Langley --- crypto/ecdsa/ecdsa_test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crypto/ecdsa/ecdsa_test.c b/crypto/ecdsa/ecdsa_test.c index 16b474de..12d02d6d 100644 --- a/crypto/ecdsa/ecdsa_test.c +++ b/crypto/ecdsa/ecdsa_test.c @@ -313,6 +313,8 @@ static int test_builtin(FILE *out) { } fprintf(out, "."); fflush(out); + ECDSA_SIG_free(ecdsa_sig); + ecdsa_sig = NULL; OPENSSL_free(signature); signature = NULL;