fixed memory leak in dispatcher
authorMartin Willi <martin@strongswan.org>
Thu, 27 Mar 2008 10:24:37 +0000 (10:24 -0000)
committerMartin Willi <martin@strongswan.org>
Thu, 27 Mar 2008 10:24:37 +0000 (10:24 -0000)
src/libfast/dispatcher.c

index d5708d0..e2c301d 100644 (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();