Commit a7059cc7 authored by Rémy Oudompheng's avatar Rémy Oudompheng

cmd/[568]g: correct freeing of allocated Regs.

R=golang-dev, rsc
CC=golang-dev, remy
https://golang.org/cl/6281050
parent 6763e5b6
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment