Removed free(router_session) from closeSession. Router session is free in session.c:session_free.

This commit is contained in:
vraatikka 2013-09-09 14:51:15 +03:00
parent 46464d7723
commit 83a7479236

View File

@ -193,13 +193,10 @@ CLI_SESSION *session = (CLI_SESSION *)router_session;
ptr->next = session->next;
}
spinlock_release(&inst->lock);
/*
* We are no longer in the linked list, free
* all the memory and other resources associated
* to the client session.
*/
free(session);
/**
* Router session is freed in session.c:session_close, when session who
* owns it, is freed.
*/
}
/**