components/openssl: fix SSL X509 show message, leaking memory
This commit is contained in:
parent
47e83ee65e
commit
37a68ad605
1 changed files with 2 additions and 0 deletions
|
@ -401,6 +401,8 @@ int x509_pm_show_info(X509 *x)
|
|||
SSL_RET(failed2, "");
|
||||
buf[ret] = 0;
|
||||
|
||||
ssl_free(buf);
|
||||
|
||||
SSL_PRINT("%s", buf);
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue