trap-manager: fix a memleak when installing a trap to %any

This commit is contained in:
Martin Willi
2013-06-19 16:30:40 +02:00
parent 1551d8b13d
commit ae131e6bac
+1
View File
@@ -109,6 +109,7 @@ METHOD(trap_manager_t, install, u_int32_t,
0, ike_cfg->get_other_port(ike_cfg));
if (!other || other->is_anyaddr(other))
{
DESTROY_IF(other);
DBG1(DBG_CFG, "installing trap failed, remote address unknown");
return 0;
}