mirror of
https://github.com/golang/go
synced 2024-11-20 09:34:52 -07:00
cmd/[568]g: correct freeing of allocated Regs.
R=golang-dev, rsc CC=golang-dev, remy https://golang.org/cl/6281050
This commit is contained in:
parent
6763e5b6cd
commit
a7059cc793
@ -703,8 +703,8 @@ brk:
|
||||
}
|
||||
}
|
||||
}
|
||||
if(r1 != R) {
|
||||
r1->link = freer;
|
||||
if(lastr != R) {
|
||||
lastr->link = freer;
|
||||
freer = firstr;
|
||||
}
|
||||
|
||||
|
@ -781,8 +781,8 @@ brk:
|
||||
p->to.branch = p->to.branch->link;
|
||||
}
|
||||
|
||||
if(r1 != R) {
|
||||
r1->link = freer;
|
||||
if(lastr != R) {
|
||||
lastr->link = freer;
|
||||
freer = firstr;
|
||||
}
|
||||
|
||||
|
@ -677,8 +677,8 @@ brk:
|
||||
p->to.branch = p->to.branch->link;
|
||||
}
|
||||
|
||||
if(r1 != R) {
|
||||
r1->link = freer;
|
||||
if(lastr != R) {
|
||||
lastr->link = freer;
|
||||
freer = firstr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user