mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
Resource leak.
This commit is contained in:
@@ -25011,6 +25011,7 @@ WOLFSSL_ASN1_INTEGER* wolfSSL_ASN1_INTEGER_dup(const WOLFSSL_ASN1_INTEGER* src)
|
||||
dup->data = (unsigned char*)
|
||||
XMALLOC(src->dataMax,NULL,DYNAMIC_TYPE_OPENSSL);
|
||||
if (dup->data == NULL) {
|
||||
wolfSSL_ASN1_INTEGER_free(dup);
|
||||
return NULL;
|
||||
}
|
||||
XMEMCPY(dup->data,src->data,dup->dataMax);
|
||||
|
Reference in New Issue
Block a user