]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Fix resource leak in x509_ocsp_response
authorThomas Egerer <thomas.egerer@secunet.com>
Fri, 4 Nov 2011 08:24:47 +0000 (09:24 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 4 Nov 2011 10:11:17 +0000 (11:11 +0100)
src/libstrongswan/plugins/x509/x509_ocsp_response.c

index eef01eca24fa83e7054ad81327df24cf75301776..23b206fb12af37c8abe7352d6d8e2a64cd83ba87 100644 (file)
@@ -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;
 }