aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2017-08-20 22:17:24 +0200
committerGravatar Steven Schubiger <stsc@refcnt.org> 2017-08-20 22:17:24 +0200
commit2d7ae2f7a5858e02a378d62142d65c4ff975859b (patch)
tree47be9c606dcf05da98c0ddcac993a65cb21e35ad
parentdf39786cf8092e479f7de292965439ff9a155696 (diff)
downloadcolorize-2d7ae2f7a5858e02a378d62142d65c4ff975859b.tar.gz
colorize-2d7ae2f7a5858e02a378d62142d65c4ff975859b.tar.bz2
process_opt_attr(): release var if not prior exited
-rw-r--r--colorize.c1
1 files changed, 1 insertions, 0 deletions
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)