Fix: used data from freed memory

This commit is contained in:
ceriel 1992-12-08 17:44:01 +00:00
parent cb32d73c61
commit 2361e37811

View file

@ -451,11 +451,12 @@ STATIC rem_code(l1,l2,b)
line_p l1,l2;
bblock_p b;
{
line_p l,x,y;
line_p l,x,y,next;
x = PREV(l1);
y = l2->l_next;
for (l = l1; l != l2; l = l->l_next) {
for (l = l1; l != l2; l = next) {
next = l->l_next;
oldline(l);
}
if (x == (line_p) 0) {