From bc5093502c7ba739a2995bf8a1bad71639fdc2e0 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Fri, 7 Oct 2022 08:43:49 -0400 Subject: [PATCH] Corrected a small error in "extract unique" that will attempt to run free() on a memory location that was never allocated. This error has no effect on anything, but correcting it prevents magic from issuing a mysterious warning. --- VERSION | 2 +- extract/ExtUnique.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 5f039137..c2e2d718 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.3.328 +8.3.329 diff --git a/extract/ExtUnique.c b/extract/ExtUnique.c index a38b9f6c..81cf6587 100644 --- a/extract/ExtUnique.c +++ b/extract/ExtUnique.c @@ -163,7 +163,7 @@ extUniqueCell(def, option) HashKill(&labelHash); ExtFreeLabRegions((LabRegion *) lregList); - freeMagic(nodeList); + if (nodeList) freeMagic(nodeList); ExtResetTiles(def, extUnInit); if (nwarn) TxError("%s: %d warnings\n", def->cd_name, nwarn);