Revert "Resource leak." to resolve the conflict (this fix is unapplicable, because the leaking code was removed).

This reverts commit 451d0a470a.
This commit is contained in:
Stanislav Klima
2020-02-20 15:04:01 +01:00
parent 6f3623f220
commit d4a9279a6c

View File

@@ -35836,7 +35836,6 @@ int wolfSSL_i2d_RSAPrivateKey(WOLFSSL_RSA *rsa, unsigned char **pp)
/* create buffer and return it */ /* create buffer and return it */
*pp = (unsigned char*)XMALLOC(ret, NULL, DYNAMIC_TYPE_OPENSSL); *pp = (unsigned char*)XMALLOC(ret, NULL, DYNAMIC_TYPE_OPENSSL);
if (*pp == NULL) { if (*pp == NULL) {
XFREE(der, NULL, DYNAMIC_TYPE_TMP_BUFFER);
return WOLFSSL_FATAL_ERROR; return WOLFSSL_FATAL_ERROR;
} }
XMEMCPY(*pp, der, ret); XMEMCPY(*pp, der, ret);