Fix memory leak in parsing some control flow structures.

This commit is contained in:
David Anderson 2014-06-21 03:36:39 -07:00
parent 5aca55713c
commit b0773d7be4

View File

@ -414,6 +414,13 @@ void popstacklist(int codegen)
{
_stack_genusage(stackusage, 1);
assert(stackusage->head==NULL);
} else {
memuse_t *use = stackusage->head;
while (use) {
memuse_t *temp = use->prev;
free(use);
use = temp;
}
}
oldlist = stackusage->prev;