From 4204db116bc9abc33376722e3b2362f84f22913b Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Thu, 27 Mar 2008 10:24:37 +0000 Subject: [PATCH] fixed memory leak in dispatcher --- src/libfast/dispatcher.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libfast/dispatcher.c b/src/libfast/dispatcher.c index d5708d0ac..e2c301d3e 100644 --- a/src/libfast/dispatcher.c +++ b/src/libfast/dispatcher.c @@ -344,6 +344,7 @@ static void destroy(private_dispatcher_t *this) this->sessions->destroy_function(this->sessions, (void*)session_entry_destroy); this->controllers->destroy_function(this->controllers, free); this->filters->destroy_function(this->filters, free); + free(this->threads); free(this); } @@ -370,6 +371,7 @@ dispatcher_t *dispatcher_create(char *socket, bool debug, int timeout, this->fd = 0; this->timeout = timeout; this->debug = debug; + this->threads = NULL; FCGX_Init();