diff options
author | Neale Ranns <nranns@cisco.com> | 2018-04-27 04:42:47 -0700 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2018-04-27 13:15:55 +0000 |
commit | cbe8d65068c9c39ca6b1f7e116dac2744835f18c (patch) | |
tree | ccb3000db4278ef3ecba65af72fc8aea69b22ce4 /src/vnet/ethernet/interface.c | |
parent | 164e5f8c63652028ecb9c3570e1ea8618b163071 (diff) |
TAP memory leaks:
1 - use bit-map to re-use ID values and thus VLIB nodes
2 - free vrings
3 - free hw_address on HW interface delete (a HW * struct is memset on pool_get)
4 - free temporary node names during TX node setup
Change-Id: Id114c8bb9c844fd4ceb02fbbeb4b511ecfeb61ce
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/ethernet/interface.c')
-rw-r--r-- | src/vnet/ethernet/interface.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/vnet/ethernet/interface.c b/src/vnet/ethernet/interface.c index 2ed20e15c24..174b3639f41 100644 --- a/src/vnet/ethernet/interface.c +++ b/src/vnet/ethernet/interface.c @@ -307,7 +307,6 @@ ethernet_register_interface (vnet_main_t * vnm, hi->max_l3_packet_bytes[VLIB_RX] = hi->max_l3_packet_bytes[VLIB_TX] = 9000; clib_memcpy (ei->address, address, sizeof (ei->address)); - vec_free (hi->hw_address); vec_add (hi->hw_address, address, sizeof (ei->address)); if (error) |