Fixed CID 576149

This commit is contained in:
David Kubasek
2021-03-03 10:25:54 +01:00
parent 830de9a9fb
commit 5dbc6db295

View File

@ -49965,6 +49965,9 @@ WOLFSSL_BIGNUM* wolfSSL_BN_bin2bn(const unsigned char* str, int len,
return NULL; return NULL;
} }
} else { } else {
/* This may be overly defensive */
if (weOwn)
wolfSSL_BN_free(ret);
return NULL; return NULL;
} }