From b41808ae0fb6b7680829322e71ece1676ff7d23e Mon Sep 17 00:00:00 2001 From: James Booth Date: Sat, 10 Mar 2012 22:50:13 +0000 Subject: [PATCH] Free memory after contact search --- input_win.c | 1 + 1 file changed, 1 insertion(+) diff --git a/input_win.c b/input_win.c index 1714dc82..88e21355 100644 --- a/input_win.c +++ b/input_win.c @@ -208,6 +208,7 @@ static int _handle_edit(const int ch, char *input, int *size) strcat(auto_msg, found); _replace_input(input, auto_msg, size); free(auto_msg); + free(found); } } return 1;