From 6dd916eaedfd23a93ba7aa2e2b39511e7e907dec Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Fri, 26 Mar 2010 14:06:52 +0100 Subject: Fixed memory leaks in hash tables and nick list. --- channel.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'channel.c') diff --git a/channel.c b/channel.c index 86e993d..8c32a96 100644 --- a/channel.c +++ b/channel.c @@ -55,9 +55,11 @@ struct channel_t *channel_get(int index) { void channel_free() { for(int i = 0; i < channel_count; i++) { free(channels[i].name); + free(channels[i].xmlpath); struct channel_file_t *file = channels[i].files; while(file) { struct channel_file_t *next = file->next; + free(file->path); free(file); file = next; } -- cgit v1.2.3