session: cleanup lookup table for rejected session

Type: fix

Signed-off-by: Ivan Shvedunov <ivan4th@gmail.com>
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Id20f693a5acdee74ab534e9964418973537b977f
This commit is contained in:
Florin Coras
2020-07-24 10:09:07 -07:00
committed by Dave Wallace
parent d2f5174dd0
commit c7fd24e30b

View File

@@ -812,8 +812,11 @@ session_stream_connect_notify (transport_connection_t * tc,
if (app_worker_connect_notify (app_wrk, s, SESSION_E_NONE, opaque))
{
session_lookup_del_connection (tc);
/* Avoid notifying app about rejected session cleanup */
s = session_get (new_si, new_ti);
session_free_w_fifos (s);
segment_manager_dealloc_fifos (s->rx_fifo, s->tx_fifo);
session_free (s);
return -1;
}