]> git.refcnt.org Git - colorize.git/commitdiff
process_opt_attr(): release var if not prior exited
authorSteven Schubiger <stsc@refcnt.org>
Sun, 20 Aug 2017 20:17:24 +0000 (22:17 +0200)
committerSteven Schubiger <stsc@refcnt.org>
Sun, 20 Aug 2017 20:17:24 +0000 (22:17 +0200)
colorize.c

index e242c3f89a0df70b976f972e86115890f477cfdb..7c1b6480da59062795ab7c40860b04ddc809141a 100644 (file)
@@ -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)