From: Pádraig Brady
Date: Wed, 25 May 2022 08:59:29 +0000 (+0100) Subject: maint: sort.c: fix syntax-check issue in recent commit X-Git-Tag: v9.2~190 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0fb9cddc018c126012fd0b773fd1e94a4b11252;p=thirdparty%2Fcoreutils.git maint: sort.c: fix syntax-check issue in recent commit * src/sort.c (keycompare): Avoid useless if before free() as detected with sc_avoid_if_before_free. --- diff --git a/src/sort.c b/src/sort.c index eedc410c36..dbe4560386 100644 --- a/src/sort.c +++ b/src/sort.c @@ -2706,8 +2706,7 @@ keycompare (struct line const *a, struct line const *b) ta[tlena] = enda; tb[tlenb] = endb; - if (allocated) - free (allocated); + free (allocated); } else if (ignore) {