From: Richard Levitte Date: Mon, 1 Mar 2004 14:58:25 +0000 (+0000) Subject: Avoid a memory leak in OCSP_parse_url(). X-Git-Tag: OpenSSL_0_9_7d~18 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4d6b383680b048f295fee673cf310b27e8f6d64f;p=oweals%2Fopenssl.git Avoid a memory leak in OCSP_parse_url(). Notified by Paul Siegel --- diff --git a/crypto/ocsp/ocsp_lib.c b/crypto/ocsp/ocsp_lib.c index 3875af165c..9e87fc7895 100644 --- a/crypto/ocsp/ocsp_lib.c +++ b/crypto/ocsp/ocsp_lib.c @@ -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);