From f7b9a55c1ed1e390584a402afbcbc4b4615a9a18 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 1 May 2021 13:55:35 +0200 Subject: [PATCH] src/data/format.c (fmt_affix_free): Fix memory leak --- src/data/format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/format.c b/src/data/format.c index 74ee0e2e2a..d22398601b 100644 --- a/src/data/format.c +++ b/src/data/format.c @@ -1156,7 +1156,7 @@ fmt_affix_clone (const struct fmt_affix *old) static void fmt_affix_free (struct fmt_affix *affix) { - if (affix->s[0]) + if (affix->s) free (affix->s); } -- 2.30.2