From f0fb9cddc018c126012fd0b773fd1e94a4b11252 Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?= Date: Wed, 25 May 2022 09:59:29 +0100 Subject: [PATCH] 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. --- src/sort.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) { -- 2.47.2