1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-05 16:19:23 +02:00

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.
This commit is contained in:
Pádraig Brady
2022-05-25 09:59:29 +01:00
parent 4e0167ea14
commit f0fb9cddc0
+1 -2
View File
@@ -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)
{