components/openssl: fix SSL X509 show message, leaking memory

This commit is contained in:
Dong Heng 2016-10-09 19:02:31 +08:00
parent 47e83ee65e
commit 37a68ad605

View file

@ -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;