From 4f2cd6e4dd0f7594707b989edc2108fcfe60e549 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Thu, 7 Apr 2016 16:41:10 +1000 Subject: [PATCH] Forgot to free body.. --- mail_menu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mail_menu.c b/mail_menu.c index 1c32b77..25dc5b4 100644 --- a/mail_menu.c +++ b/mail_menu.c @@ -357,6 +357,8 @@ char *external_editor(int socket, struct user_record *user, char *to, char *from sprintf(buffer, "\r---\r * Origin: %s \r", tagline); strcat(body2, buffer); + free(body); + return body2; } }