X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Flist_keys.c;h=31c057a0a7f6ef29c38b2340fc37bdf7b0b11982;hp=759469500a40a92f97537dce4ad7795132819681;hb=a924c24b2535cccdc0f5f991cd8ddcadcfa1f0d2;hpb=3eda6f30a84d53844d2ebceadb457e2e7e9cfbf3 diff --git a/test/list_keys.c b/test/list_keys.c index 75946950..31c057a0 100644 --- a/test/list_keys.c +++ b/test/list_keys.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: list_keys.c,v 1.18 2017/03/18 22:03:07 tom Exp $ + * $Id: list_keys.c,v 1.19 2017/04/08 22:57:26 tom Exp $ * * Author: Thomas E Dickey * @@ -159,7 +159,7 @@ show_key(const char *name, bool show) } static bool -valid_key(const char *name, TERMINAL ** terms, int count) +valid_key(const char *name, TERMINAL **terms, int count) { bool result = FALSE; if (*name == 'k') { @@ -266,7 +266,7 @@ modified_key(const char *name) } static void -list_keys(TERMINAL ** terms, int count) +list_keys(TERMINAL **terms, int count) { int j, k; int widths0 = 0; @@ -486,6 +486,8 @@ main(int argc, char *argv[]) list_keys(terms, 1); } + free(terms); + ExitProgram(EXIT_SUCCESS); }