session: memory leaks on various transports when session disable and enable 40/41240/1
authorSteven Luong <sluong@cisco.com>
Fri, 28 Jun 2024 22:12:11 +0000 (15:12 -0700)
committerSteven Luong <sluong@cisco.com>
Fri, 28 Jun 2024 22:19:08 +0000 (15:19 -0700)
commitd2d41bc34e1663803037fc0a6c7bda9078cef2b6
treef067ffe0b6b6aaaae19dad00ec3f10173d758a98
parent6d44aabe8d5e0015fd851788ef7c7bee48340dee
session: memory leaks on various transports when session disable and enable

When toggling session disable and enable, memory leaks found on various
transports.

Don't create the timer wheels on enable when they are already creaded.
Don't create the spin locks when they are already created.
Add session enable disable test in session unit test.

Type: fix

Change-Id: I08988a96bbf2d67a67c743b50b63f5b1e27402a3
Signed-off-by: Steven Luong <sluong@cisco.com>
src/plugins/http/http_timer.c
src/plugins/unittest/session_test.c
src/vnet/session/application_local.c
src/vnet/tcp/tcp_timer.c