From: Thomas Egerer Date: Fri, 4 Nov 2011 08:24:47 +0000 (+0100) Subject: Fix resource leak in x509_ocsp_response X-Git-Tag: 4.6.0~14 X-Git-Url: https://git.strongswan.org/?p=strongswan.git;a=commitdiff_plain;h=c230885a07fb87a5a5c34e01204ac25ae319a316 Fix resource leak in x509_ocsp_response --- diff --git a/src/libstrongswan/plugins/x509/x509_ocsp_response.c b/src/libstrongswan/plugins/x509/x509_ocsp_response.c index eef01ec..23b206f 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; }