iomenu

interactive text selection menu
Log | Files | Refs | README | LICENSE

commit 90c2e1d2a25f901d709d94702f4ec2229c81990a
parent 409c996d657767e3d563e2e8630a3974d93fb1f7
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Wed, 29 Nov 2017 20:54:31 +0100

free(NULL) is valid

Diffstat:
Miomenu.c | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/iomenu.c b/iomenu.c @@ -58,12 +58,10 @@ free_lines(void) extern char **linev; extern char **matchv; - if (linev) { + if (linev) free(linev[0]); - free(linev); - } - if (matchv) - free(matchv); + free(linev); + free(matchv); } /*