diff options
Diffstat (limited to 'src/daemon/daemon.c')
-rw-r--r-- | src/daemon/daemon.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index 0ebf21d0..4b743aad 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c | |||
@@ -294,6 +294,15 @@ MHD_cleanup_sessions(struct MHD_Daemon * daemon) { | |||
294 | else | 294 | else |
295 | prev->next = pos->next; | 295 | prev->next = pos->next; |
296 | free(pos->addr); | 296 | free(pos->addr); |
297 | if (pos->url != NULL) | ||
298 | free(pos->url); | ||
299 | if (pos->method != NULL) | ||
300 | free(pos->method); | ||
301 | if (pos->write_buffer != NULL) | ||
302 | free(pos->write_buffer); | ||
303 | if (pos->read_buffer != NULL) | ||
304 | free(pos->read_buffer); | ||
305 | /* FIXME: free headers_received here! */ | ||
297 | /* FIXME: more to free here! */ | 306 | /* FIXME: more to free here! */ |
298 | free(pos); | 307 | free(pos); |
299 | } | 308 | } |