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 eef01ec..23b206f 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;
 }