mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-13 02:37:21 +00:00
components/openssl: fix SSL X509 show message, leaking memory
This commit is contained in:
@@ -401,6 +401,8 @@ int x509_pm_show_info(X509 *x)
|
|||||||
SSL_RET(failed2, "");
|
SSL_RET(failed2, "");
|
||||||
buf[ret] = 0;
|
buf[ret] = 0;
|
||||||
|
|
||||||
|
ssl_free(buf);
|
||||||
|
|
||||||
SSL_PRINT("%s", buf);
|
SSL_PRINT("%s", buf);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user