Avoid a memory leak in OCSP_parse_url().

Notified by Paul Siegel <psiegel@corestreet.com>
This commit is contained in:
Richard Levitte 2004-03-01 14:58:22 +00:00
parent a30af36c77
commit 4cfa4ae820

View File

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