Fix continue in a loop body leaking heap-allocated variables. (bug 6370, r=fyren)

This commit is contained in:
David Anderson 2015-05-27 10:33:07 -04:00
parent 8cb2fcdf65
commit b491345d78

View File

@ -7253,6 +7253,7 @@ static int dofor(void)
save_nestlevel=nestlevel;
save_endlessloop=endlessloop;
pushstacklist();
pushheaplist();
addwhile(wq);
skiplab=getlabel();
@ -7350,6 +7351,8 @@ static int dofor(void)
setlabel(wq[wqEXIT]);
delwhile();
popheaplist();
assert(nestlevel>=save_nestlevel);
if (nestlevel>save_nestlevel) {
/* Clean up the space and the symbol table for the local