Grouped sessions were being leaked on destroy, correctly free them.

This commit is contained in:
Nicholas Marriott
2013-08-01 23:38:35 +01:00
parent 965edf8a5c
commit b0b5cad496
2 changed files with 5 additions and 3 deletions

View File

@@ -150,6 +150,7 @@ void
session_destroy(struct session *s)
{
struct winlink *wl;
log_debug("session %s destroyed", s->name);
RB_REMOVE(sessions, &sessions, s);