]> git.deb.at Git - pkg/abook.git/commitdiff
- fix a memory leak (Cedric Duval)
authorJaakko Heinonen <jheinonen@users.sourceforge.net>
Wed, 21 Sep 2005 18:21:09 +0000 (18:21 +0000)
committerJaakko Heinonen <jheinonen@users.sourceforge.net>
Wed, 21 Sep 2005 18:21:09 +0000 (18:21 +0000)
ui.c

diff --git a/ui.c b/ui.c
index e899be6cd463517f2aa7fe3ae4272b50a4fc7269..45aa61e14f5c1ec124b3e6033e41cf2fcd7e3bb9 100644 (file)
--- 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();
        }