Fixed resource leak.

This commit is contained in:
Stanislav Klima
2020-04-15 16:29:11 +02:00
parent 68a2e03bd4
commit 314ff1137b

View File

@ -25243,6 +25243,7 @@ WOLFSSL_API int wolfSSL_X509_STORE_load_locations(WOLFSSL_X509_STORE *str,
DYNAMIC_TYPE_TMP_BUFFER);
if (readCtx == NULL) {
WOLFSSL_MSG("Memory error");
wolfSSL_CTX_free(ctx);
return WOLFSSL_FAILURE;
}
#endif