From 63075ceca4a71b27d602f841d7f70037af0aa602 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sun, 21 Aug 2016 09:45:38 +1000 Subject: [PATCH] Respond to non Get/post requests --- www.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/www.c b/www.c index 2c1ace7..6353481 100644 --- a/www.c +++ b/www.c @@ -870,6 +870,10 @@ int www_handler(void * cls, struct MHD_Connection * connection, const char * url free(footer); return MHD_NO; } + } else { + free(header); + free(footer); + return MHD_NO; } response = MHD_create_response_from_buffer (strlen (whole_page), (void*) whole_page, MHD_RESPMEM_MUST_FREE);