From 4659648159f29bebe8a69d2e77c271ccf8cb1c87 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Mon, 11 Feb 2013 11:04:01 +0800 Subject: [PATCH] valgrind free context allocations Signed-off-by: Andy Green --- lib/libwebsockets.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/libwebsockets.c b/lib/libwebsockets.c index 619b00877..173c9774c 100644 --- a/lib/libwebsockets.c +++ b/lib/libwebsockets.c @@ -1079,6 +1079,11 @@ libwebsocket_context_destroy(struct libwebsocket_context *context) SSL_CTX_free(context->ssl_client_ctx); #endif + if (context->fds) + free(context->fds); + if (context->lws_lookup) + free(context->lws_lookup); + free(context); #ifdef WIN32