summaryrefslogtreecommitdiffstats
path: root/src/plugins/vrrp
diff options
context:
space:
mode:
authorjinsh <jinsh11@chinatelecom.cn>2021-12-18 22:24:26 +0800
committerMatthew Smith <mgsmith@netgate.com>2021-12-20 19:40:08 +0000
commit3aa3d6d3f347784f3df5c164b3078bdc5e80e54a (patch)
tree2dc31c00b2617ec3817fe96f2c9bd6cef6fedc7d /src/plugins/vrrp
parentf977ce7972af69aa7996dfd319614018890e75b8 (diff)
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
Diffstat (limited to 'src/plugins/vrrp')
-rw-r--r--src/plugins/vrrp/vrrp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/vrrp/vrrp.c b/src/plugins/vrrp/vrrp.c
index 2f638624218..b6817b8a55c 100644
--- a/src/plugins/vrrp/vrrp.c
+++ b/src/plugins/vrrp/vrrp.c
@@ -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);