strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix resource leak in x509_ocsp_response
[strongswan.git]
/
src
/
libstrongswan
/
plugins
/
x509
/
x509_ocsp_response.c
diff --git
a/src/libstrongswan/plugins/x509/x509_ocsp_response.c
b/src/libstrongswan/plugins/x509/x509_ocsp_response.c
index
eef01ec
..
23b206f
100644
(file)
--- a/
src/libstrongswan/plugins/x509/x509_ocsp_response.c
+++ b/
src/libstrongswan/plugins/x509/x509_ocsp_response.c
@@
-373,6
+373,10
@@
static bool parse_singleResponse(private_x509_ocsp_response_t *this,
}
this->responses->insert_last(this->responses, response);
}
+ else
+ {
+ free(response);
+ }
return success;
}