]> git.deb.at Git - pkg/abook.git/blobdiff - ui.c
- fix a memory leak (Cedric Duval)
[pkg/abook.git] / 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();
        }