CalmaWrite: fix: introduced memory leak, missed free

Appears the 'listtop' is a sentinal/entryexit value to a circular list
My recent patch does not copy original behaviour in freeing this list
entry (as well as the reset of the list).
This commit is contained in:
Darryl L. Miles 2025-12-20 18:43:09 +00:00
parent e9202c1d29
commit f6875f28cf
2 changed files with 2 additions and 0 deletions

View File

@ -2432,6 +2432,7 @@ calmaProcessBoundary(
freeMagic1(&mm1, lbref);
lbref = lbref->lb_next;
}
freeMagic1(&mm1, lbref);
freeMagic1_end(&mm1);
}
}

View File

@ -1867,6 +1867,7 @@ calmaProcessBoundaryZ(
freeMagic1(&mm1, lbref);
lbref = lbref->lb_next;
}
freeMagic1(&mm1, lbref);
freeMagic1_end(&mm1);
}
}