From e92078b6d282cb7440124eee19dc42a1201baf90 Mon Sep 17 00:00:00 2001 From: Jaakko Heinonen Date: Wed, 21 Sep 2005 18:21:09 +0000 Subject: [PATCH] - fix a memory leak (Cedric Duval) --- ui.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ui.c b/ui.c index e899be6..45aa61e 100644 --- a/ui.c +++ b/ui.c @@ -495,6 +495,7 @@ ui_find(int next) char *s; s = ui_readline("/", findstr, MAX_FIELD_LEN - 1, 0); strncpy(findstr, s, MAX_FIELD_LEN); + free(s); refresh_screen(); } -- 2.39.2