提交 40efa672 编写于 作者: R Richard Levitte

Plug potential memory leak.

Identified by Goetz Babin-Ebell <babinebell@trustcenter.de>
上级 769fedc3
......@@ -251,7 +251,7 @@ int PEM_bytes_read_bio(unsigned char **pdata, long *plen, char **pnm, const char
ret = 1;
err:
if (!pnm) OPENSSL_free(nm);
if (!ret || !pnm) OPENSSL_free(nm);
OPENSSL_free(header);
if (!ret) OPENSSL_free(data);
return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册