ike-cfg: Fix memory leak when checking for configured address

This commit is contained in:
Tobias Brunner
2017-08-29 16:25:42 +02:00
parent d2a89e9407
commit 66805c7b32
+1
View File
@@ -580,6 +580,7 @@ bool ike_cfg_has_address(ike_cfg_t *cfg, host_t *addr, bool local)
host = host_create_from_string(str, 0);
if (host && addr->ip_equals(addr, host))
{
host->destroy(host);
found = TRUE;
break;
}