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:
parent
9850c5586e
commit
5e8a3f038a
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue