summaryrefslogtreecommitdiffstats
path: root/crypto/ocsp
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2004-03-01 14:58:22 +0000
committerRichard Levitte <levitte@openssl.org>2004-03-01 14:58:22 +0000
commit4cfa4ae820c24462c916a43d36d5daaeaf85345e (patch)
tree5b686f0e872dd876e81a1ab599f5e0e960c288aa /crypto/ocsp
parenta30af36c77af13044b75338d26451a5f16367421 (diff)
Avoid a memory leak in OCSP_parse_url().
Notified by Paul Siegel <psiegel@corestreet.com>
Diffstat (limited to 'crypto/ocsp')
-rw-r--r--crypto/ocsp/ocsp_lib.c1
1 files changed, 1 insertions, 0 deletions
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);