nat lb: del lb static mapping existed vec mem leak(VPP-983) 07/8407/2
authorflyingeagle23 <wang.hui56@zte.com.cn>
Wed, 13 Sep 2017 11:03:56 +0000 (19:03 +0800)
committerFlorin Coras <florin.coras@gmail.com>
Wed, 13 Sep 2017 17:19:55 +0000 (17:19 +0000)
Change-Id: Id7306b432a33bb0fa594b6949e65ca528d8c0916
Signed-off-by: flyingeagle23 <wang.hui56@zte.com.cn>
src/plugins/nat/nat.c

index b98b834..5189416 100644 (file)
@@ -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);
     }