From 68a2e03bd43fdbf4f234938f578202453f84a660 Mon Sep 17 00:00:00 2001 From: Stanislav Klima Date: Wed, 15 Apr 2020 16:27:34 +0200 Subject: [PATCH] Fixed resource leak. --- wolfcrypt/src/asn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index f4a1bd28b..a2eeaf039 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -15167,6 +15167,7 @@ int DecodeECC_DSA_Sig(const byte* sig, word32 sigLen, mp_int* r, mp_int* s) } if (GetInt(s, sig, &idx, sigLen) < 0) { + mp_clear(r); return ASN_ECC_KEY_E; }