1
0
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:
Rémy Oudompheng 2012-06-05 06:43:15 +02:00
parent 6763e5b6cd
commit a7059cc793
3 changed files with 6 additions and 6 deletions

View File

@ -703,8 +703,8 @@ brk:
}
}
}
if(r1 != R) {
r1->link = freer;
if(lastr != R) {
lastr->link = freer;
freer = firstr;
}

View File

@ -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;
}

View File

@ -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;
}