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:25 +00:00
parent 489885cf84
commit 4d6b383680

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