]> 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 b58ec5965bca3739c75c37c05d5ac158598d8000..45aa61e14f5c1ec124b3e6033e41cf2fcd7e3bb9 100644 (file)
--- a/ui.c
+++ b/ui.c
@@ -261,11 +261,9 @@ statusline_ask_boolean(char *msg, int def)
 
        switch(tolower(getch())) {
                case 'n':
-               case 'N':
                        ret = FALSE;
                        break;
                case 'y':
-               case 'Y':
                        ret = TRUE;
                        break;
                default:
@@ -497,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();
        }