projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a30af36
)
Avoid a memory leak in OCSP_parse_url().
author
Richard Levitte
<levitte@openssl.org>
Mon, 1 Mar 2004 14:58:22 +0000
(14:58 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Mon, 1 Mar 2004 14:58:22 +0000
(14:58 +0000)
Notified by Paul Siegel <psiegel@corestreet.com>
crypto/ocsp/ocsp_lib.c
patch
|
blob
|
history
diff --git
a/crypto/ocsp/ocsp_lib.c
b/crypto/ocsp/ocsp_lib.c
index 3875af165c717fdb4cd670a31c0718a7f3164dc9..9e87fc78957e170ab107ee042fa8c0bb69c5847e 100644
(file)
--- 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);