vrrp:fix vrrp vr delete case memory leak

when vrrp vr delete, vr->config.peer_addrs not free

Type: fix

Signed-off-by: jinsh <jinsh11@chinatelecom.cn>
Change-Id: I9ead188d6409412b475b5f6add767cb58f1af6e0
This commit is contained in:
jinsh
2021-12-18 22:24:26 +08:00
committed by Matthew Smith
parent f977ce7972
commit 3aa3d6d3f3

View File

@ -696,6 +696,7 @@ vrrp_vr_add_del (u8 is_add, vrrp_vr_config_t * vr_conf)
vrrp_vr_tracking_ifs_add_del (vr, vr->tracking.interfaces, is_add);
vrrp_vr_addrs_add_del (vr, is_add, vr->config.vr_addrs);
mhash_unset (&vrm->vr_index_by_key, &key, 0);
vec_free (vr->config.peer_addrs);
vec_free (vr->config.vr_addrs);
vec_free (vr->tracking.interfaces);
pool_put (vrm->vrs, vr);