tcp: free sack block list on connection cleanup 93/17793/2
authorFlorin Coras <[email protected]>
Fri, 22 Feb 2019 17:56:41 +0000 (09:56 -0800)
committerDamjan Marion <[email protected]>
Fri, 22 Feb 2019 20:44:42 +0000 (20:44 +0000)
Change-Id: I7152b4ae64528082765726d5844580aad54c0c70
Signed-off-by: Florin Coras <[email protected]>
src/vnet/tcp/tcp.c

index 037abdc..a6047cf 100644 (file)
@@ -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));