free(NULL) is valid - iomenu - interactive terminal-based selection menu HTML git clone git://bitreich.org/iomenu git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/iomenu DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 90c2e1d2a25f901d709d94702f4ec2229c81990a DIR parent 409c996d657767e3d563e2e8630a3974d93fb1f7 HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Wed, 29 Nov 2017 20:54:31 +0100 free(NULL) is valid Diffstat: M iomenu.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) --- DIR 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); } /*