提交 4cfa4ae8 编写于 作者: R Richard Levitte

Avoid a memory leak in OCSP_parse_url().

Notified by Paul Siegel <psiegel@corestreet.com>
上级 a30af36c
...@@ -253,6 +253,7 @@ int OCSP_parse_url(char *url, char **phost, char **pport, char **ppath, int *pss ...@@ -253,6 +253,7 @@ int OCSP_parse_url(char *url, char **phost, char **pport, char **ppath, int *pss
err: err:
if (buf) OPENSSL_free(buf);
if (*ppath) OPENSSL_free(*ppath); if (*ppath) OPENSSL_free(*ppath);
if (*pport) OPENSSL_free(*pport); if (*pport) OPENSSL_free(*pport);
if (*phost) OPENSSL_free(*phost); if (*phost) OPENSSL_free(*phost);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册