Fix: used data from freed memory
This commit is contained in:
parent
cb32d73c61
commit
2361e37811
1 changed files with 3 additions and 2 deletions
|
@ -451,11 +451,12 @@ STATIC rem_code(l1,l2,b)
|
||||||
line_p l1,l2;
|
line_p l1,l2;
|
||||||
bblock_p b;
|
bblock_p b;
|
||||||
{
|
{
|
||||||
line_p l,x,y;
|
line_p l,x,y,next;
|
||||||
|
|
||||||
x = PREV(l1);
|
x = PREV(l1);
|
||||||
y = l2->l_next;
|
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);
|
oldline(l);
|
||||||
}
|
}
|
||||||
if (x == (line_p) 0) {
|
if (x == (line_p) 0) {
|
||||||
|
|
Loading…
Reference in a new issue