From d0f4dec52b4ca30b20bf67d257b361e34544675b Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Fri, 22 Feb 2019 09:56:41 -0800 Subject: tcp: free sack block list on connection cleanup Change-Id: I7152b4ae64528082765726d5844580aad54c0c70 Signed-off-by: Florin Coras --- src/vnet/tcp/tcp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vnet/tcp') diff --git a/src/vnet/tcp/tcp.c b/src/vnet/tcp/tcp.c index 037abdc652d..a6047cf9b0c 100644 --- a/src/vnet/tcp/tcp.c +++ b/src/vnet/tcp/tcp.c @@ -223,6 +223,8 @@ tcp_connection_cleanup (tcp_connection_t * tc) if (!tc->c_is_ip4 && ip6_address_is_link_local_unicast (&tc->c_rmt_ip6)) tcp_add_del_adjacency (tc, 0); + vec_free (tc->snd_sacks); + /* Poison the entry */ if (CLIB_DEBUG > 0) clib_memset (tc, 0xFA, sizeof (*tc)); -- cgit 1.2.3-korg