mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-02 02:58:01 +02:00
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:
@@ -2432,6 +2432,7 @@ calmaProcessBoundary(
|
||||
freeMagic1(&mm1, lbref);
|
||||
lbref = lbref->lb_next;
|
||||
}
|
||||
freeMagic1(&mm1, lbref);
|
||||
freeMagic1_end(&mm1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1867,6 +1867,7 @@ calmaProcessBoundaryZ(
|
||||
freeMagic1(&mm1, lbref);
|
||||
lbref = lbref->lb_next;
|
||||
}
|
||||
freeMagic1(&mm1, lbref);
|
||||
freeMagic1_end(&mm1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user