diff --git a/src/charon/sa/tasks/ike_config.c b/src/charon/sa/tasks/ike_config.c index b97290583..a968c66aa 100644 --- a/src/charon/sa/tasks/ike_config.c +++ b/src/charon/sa/tasks/ike_config.c @@ -278,6 +278,7 @@ static status_t build_r(private_ike_config_t *this, message_t *message) cp->set_config_type(cp, CFG_REQUEST); build_vip(this, vip, cp); + vip->destroy(vip); /* if we add an IP, we also look for other attributes */ enumerator = charon->attributes->create_attribute_enumerator(