Resource leak.

pull/2773/head
Stanislav Klima 2020-01-29 17:30:14 +01:00
parent 96d1593735
commit 451d0a470a
1 changed files with 1 additions and 0 deletions

View File

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