ike-cfg: Fix memory leak when checking for configured address
This commit is contained in:
1 parent
d2a89e9407
commit
66805c7b32
1 file changed
+1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user