Type: fix
Signed-off-by: jiangxiaoming <jiangxiaoming@outlook.com>
Change-Id: I3783f72ff93c362589e859f389d94eadd2aadddb
http_server_session_free (http_session_t * hs)
{
http_server_main_t *hsm = &http_server_main;
http_server_session_free (http_session_t * hs)
{
http_server_main_t *hsm = &http_server_main;
- pool_put (hsm->sessions[hs->thread_index], hs);
+ u32 thread = hs->thread_index;
if (CLIB_DEBUG)
memset (hs, 0xfa, sizeof (*hs));
if (CLIB_DEBUG)
memset (hs, 0xfa, sizeof (*hs));
+ pool_put (hsm->sessions[thread], hs);