aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/x509/x509_ocsp_response.c
diff options
context:
space:
mode:
authorThomas Egerer <thomas.egerer@secunet.com>2011-11-04 09:24:47 +0100
committerTobias Brunner <tobias@strongswan.org>2011-11-04 11:11:17 +0100
commitc230885a07fb87a5a5c34e01204ac25ae319a316 (patch)
tree0b4b8a2a2b4df2b228aad238f540e356eb00e723 /src/libstrongswan/plugins/x509/x509_ocsp_response.c
parentdbfd1a63aae484be369272b1f9eb6349fbcbb973 (diff)
downloadstrongswan-c230885a07fb87a5a5c34e01204ac25ae319a316.tar.bz2
strongswan-c230885a07fb87a5a5c34e01204ac25ae319a316.tar.xz
Fix resource leak in x509_ocsp_response
Diffstat (limited to 'src/libstrongswan/plugins/x509/x509_ocsp_response.c')
-rw-r--r--src/libstrongswan/plugins/x509/x509_ocsp_response.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/x509/x509_ocsp_response.c b/src/libstrongswan/plugins/x509/x509_ocsp_response.c
index eef01eca2..23b206fb1 100644
--- 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;
}