mirror of
https://github.com/golang/go
synced 2024-11-15 11:40:35 -07:00
[release-branch.go1] cmd/[568]g: correct freeing of allocated Regs.
««« backport f1028a23b059 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
9f0345c4ec
commit
3a9bd603ed
@ -695,8 +695,8 @@ brk:
|
||||
}
|
||||
}
|
||||
}
|
||||
if(r1 != R) {
|
||||
r1->link = freer;
|
||||
if(lastr != R) {
|
||||
lastr->link = freer;
|
||||
freer = firstr;
|
||||
}
|
||||
|
||||
|
@ -780,8 +780,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