From 2d7ae2f7a5858e02a378d62142d65c4ff975859b Mon Sep 17 00:00:00 2001 From: Steven Schubiger Date: Sun, 20 Aug 2017 22:17:24 +0200 Subject: process_opt_attr(): release var if not prior exited --- colorize.c | 1 + 1 file changed, 1 insertion(+) (limited to 'colorize.c') diff --git a/colorize.c b/colorize.c index e242c3f..7c1b648 100644 --- a/colorize.c +++ b/colorize.c @@ -474,6 +474,7 @@ process_opt_attr (const char *p) strncpy (attr_invalid, s, p - s); attr_invalid[p - s] = '\0'; vfprintf_fail ("--attr switch attribute '%s' is not valid", attr_invalid); + RELEASE_VAR (attr_invalid); /* never reached */ } } if (*p) -- cgit v1.2.3