diff --git a/src/session.c b/src/session.c index 0ceb031b9..772307495 100644 --- a/src/session.c +++ b/src/session.c @@ -580,6 +580,7 @@ int session_complete(struct session *s) /* and restore the connection pointer in case we destroyed it, * because kill_mini_session() will need it. */ + LIST_DEL(&s->list); s->target = &conn->obj_type; return ret; }