From: John Darrington Date: Sat, 1 May 2021 11:55:35 +0000 (+0200) Subject: src/data/format.c (fmt_affix_free): Fix memory leak X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7b9a55c1ed1e390584a402afbcbc4b4615a9a18;hp=1c25ce345afc54a9550b47afd6d57f28aef9e75a;p=pspp src/data/format.c (fmt_affix_free): Fix memory leak --- 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); }