diff --git a/www_msgs.c b/www_msgs.c
index f33290c..567e99b 100644
--- a/www_msgs.c
+++ b/www_msgs.c
@@ -416,7 +416,7 @@ char *www_msgs_messageview(struct user_record *user, int conference, int area, i
strcat(page, buffer);
len += strlen(buffer);
- free(body);
+
sprintf(buffer, "
\n");
if (len + strlen(buffer) > max_len - 1) {
@@ -529,7 +529,7 @@ char *www_msgs_messageview(struct user_record *user, int conference, int area, i
strcat(page, buffer);
len += strlen(buffer);
}
-
+ free(body);
sprintf(buffer, "\n
");
if (len + strlen(buffer) > max_len - 1) {
max_len += 4096;