fixed memleak
authorMartin Willi <martin@strongswan.org>
Mon, 11 May 2009 08:11:20 +0000 (10:11 +0200)
committerMartin Willi <martin@strongswan.org>
Mon, 11 May 2009 08:42:52 +0000 (10:42 +0200)
src/charon/sa/tasks/ike_config.c

index b972905..a968c66 100644 (file)
@@ -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);
                        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(
                        
                        /* if we add an IP, we also look for other attributes */
                        enumerator = charon->attributes->create_attribute_enumerator(