Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- lib/colors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/colors.c b/lib/colors.c index cb342a0..8de1d2f 100644 --- a/lib/colors.c +++ b/lib/colors.c @@ -425,9 +425,9 @@ static int colors_add_scheme(struct ul_color_ctl *cc, return -EINVAL; rc = cn_sequence(seq0, &seq); + free(seq0); if (rc) return rc; - free(seq0); /* convert logical name (e.g. "red") to real ESC code */ if (isalpha(*seq)) { -- 2.0.1 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html