Avoid a memory leak in OCSP_parse_url().
Notified by Paul Siegel <psiegel@corestreet.com>
This commit is contained in:
parent
a30af36c77
commit
4cfa4ae820
@ -253,6 +253,7 @@ int OCSP_parse_url(char *url, char **phost, char **pport, char **ppath, int *pss
|
||||
|
||||
|
||||
err:
|
||||
if (buf) OPENSSL_free(buf);
|
||||
if (*ppath) OPENSSL_free(*ppath);
|
||||
if (*pport) OPENSSL_free(*pport);
|
||||
if (*phost) OPENSSL_free(*phost);
|
||||
|
Loading…
x
Reference in New Issue
Block a user