Omit unnecessary freeing

* src/extract.c (apply_delayed_link): Don’t bother to
free memory, as we’re about to exit.
This commit is contained in:
Paul Eggert
2023-06-17 00:37:08 -07:00
parent c542d3d0c8
commit 2096772fbe

View File

@@ -1927,15 +1927,20 @@ apply_delayed_link (struct delayed_link *ds)
}
}
for (sources = ds->sources; sources; )
/* There is little point to freeing, as we are about to exit,
and freeing is more likely to cause than cure trouble. */
if (false)
{
struct string_list *next = sources->next;
free (sources);
sources = next;
}
for (sources = ds->sources; sources; )
{
struct string_list *next = sources->next;
free (sources);
sources = next;
}
xattr_map_free (&ds->xattr_map);
free (ds->cntx_name);
xattr_map_free (&ds->xattr_map);
free (ds->cntx_name);
}
}
/* Extract the links whose final extraction were delayed. */