From: Jaakko Heinonen Date: Wed, 21 Sep 2005 18:21:09 +0000 (+0000) Subject: - fix a memory leak (Cedric Duval) X-Git-Tag: upstream/0.6.1~2^2~164 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=e92078b6d282cb7440124eee19dc42a1201baf90;p=pkg%2Fabook.git - fix a memory leak (Cedric Duval) --- 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(); }