From: Adam Dickmeiss Date: Mon, 19 Apr 2010 11:52:03 +0000 (+0200) Subject: Call client_destroy when releasing it from session X-Git-Tag: v1.4.0~36 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=e357450419e008ed47265e4e7dd54f3ddb5c89f1;p=pazpar2-moved-to-github.git Call client_destroy when releasing it from session --- diff --git a/src/session.c b/src/session.c index 676627c..33331fb 100644 --- a/src/session.c +++ b/src/session.c @@ -452,7 +452,11 @@ static void select_targets_callback(void *context, struct session_database *db) static void session_remove_clients(struct session *se) { while (se->clients) - client_remove_from_session(se->clients); + { + struct client *cl = se->clients; + client_remove_from_session(cl); + client_destroy(cl); + } } // Associates a set of clients with a session;