fixed memleak

This commit is contained in:
Martin Willi
2007-05-22 09:38:42 +00:00
parent 905438735a
commit a06c068191
+1
View File
@@ -314,6 +314,7 @@ static status_t build_r(private_ike_config_t *this, message_t *message)
if (ip == NULL || ip->is_anyaddr(ip)) if (ip == NULL || ip->is_anyaddr(ip))
{ {
DBG1(DBG_IKE, "not assigning a virtual IP to peer"); DBG1(DBG_IKE, "not assigning a virtual IP to peer");
DESTROY_IF(ip);
return SUCCESS; return SUCCESS;
} }
DBG1(DBG_IKE, "assigning virtual IP %H to peer", ip); DBG1(DBG_IKE, "assigning virtual IP %H to peer", ip);