fixed memory leak in dispatcher

This commit is contained in:
Martin Willi
2008-03-27 10:24:37 +00:00
parent 54150b3f13
commit 4204db116b
+2
View File
@@ -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();