From d4a9279a6cc188713ed0c7f87bc2a0301ff052aa Mon Sep 17 00:00:00 2001 From: Stanislav Klima Date: Thu, 20 Feb 2020 15:04:01 +0100 Subject: [PATCH] Revert "Resource leak." to resolve the conflict (this fix is unapplicable, because the leaking code was removed). This reverts commit 451d0a470a5de9cb27d408f127eb934cfe4d77a0. --- src/ssl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index 96e3562b3..95191dac1 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -35836,7 +35836,6 @@ 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);