aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflyingeagle23 <wang.hui56@zte.com.cn>2017-09-13 19:03:56 +0800
committerFlorin Coras <florin.coras@gmail.com>2017-09-13 17:19:55 +0000
commit01ffc0c1a3f8c5c15dc40cbe4560bdb3c2484152 (patch)
tree81cb25c7f4c8be986b4346bf214960f52f5af445
parent0eacfa32687730ae6d7dbc67201165fac26682d6 (diff)
nat lb: del lb static mapping existed vec mem leak(VPP-983)
Change-Id: Id7306b432a33bb0fa594b6949e65ca528d8c0916 Signed-off-by: flyingeagle23 <wang.hui56@zte.com.cn>
-rw-r--r--src/plugins/nat/nat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/nat/nat.c b/src/plugins/nat/nat.c
index b98b8347acf..5189416e576 100644
--- a/src/plugins/nat/nat.c
+++ b/src/plugins/nat/nat.c
@@ -838,6 +838,7 @@ int nat44_add_del_lb_static_mapping (ip4_address_t e_addr, u16 e_port,
return VNET_API_ERROR_UNSPECIFIED;
}
}
+ vec_free(m->locals);
pool_put (sm->static_mappings, m);
}