1
0
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:
Rémy Oudompheng 2012-06-13 16:24:42 -04:00
parent 9f0345c4ec
commit 3a9bd603ed
3 changed files with 6 additions and 6 deletions

View File

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

View File

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

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