From 4b736294233cf6f72f1eb3b69f93ce32d03512c5 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Thu, 30 Mar 2017 23:20:23 +1000 Subject: [PATCH] Possible fix?? --- deps/aha/aha.c | 2 +- www_msgs.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deps/aha/aha.c b/deps/aha/aha.c index 238a22d..9cb6cc9 100644 --- a/deps/aha/aha.c +++ b/deps/aha/aha.c @@ -115,7 +115,7 @@ char * aha(char *input) int temp; char *ptr = unmangle_out; char *output = (char *)malloc(256); - int size; + int size = 256; int outat = 0; char minibuf[2]; diff --git a/www_msgs.c b/www_msgs.c index fb33b94..d724339 100644 --- a/www_msgs.c +++ b/www_msgs.c @@ -480,8 +480,8 @@ char *www_msgs_messageview(struct user_record *user, int conference, int area, i strcat(page, aha_out); len += strlen(aha_out); - //free(aha_out); - //free(aha_text); + free(aha_out); + free(aha_text); sprintf(buffer, "\n"); if (len + strlen(buffer) > max_len - 1) {