aboutsummaryrefslogtreecommitdiffstats
path: root/src/libfast
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-03-27 10:24:37 +0000
committerMartin Willi <martin@strongswan.org>2008-03-27 10:24:37 +0000
commit4204db116bc9abc33376722e3b2362f84f22913b (patch)
treefaadd5c0e9faf70f414479874986e0f6b34aff22 /src/libfast
parent54150b3f13d71e9f126c7c68546905632793c90a (diff)
downloadstrongswan-4204db116bc9abc33376722e3b2362f84f22913b.tar.bz2
strongswan-4204db116bc9abc33376722e3b2362f84f22913b.tar.xz
fixed memory leak in dispatcher
Diffstat (limited to 'src/libfast')
-rw-r--r--src/libfast/dispatcher.c2
1 files changed, 2 insertions, 0 deletions
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();