Skip to content

Commit

Permalink
Workaround regression 11777.
Browse files Browse the repository at this point in the history
Probably freed memory is used in future and refactoring commit triggered the issue by changing allocation functions.

Issue URL: https://d.puremagic.com/issues/show_bug.cgi?id=11777
Causing commit: 1e99eed
  • Loading branch information
denis-sh committed Dec 22, 2013
1 parent db7ca85 commit e3696a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scope.c
Expand Up @@ -191,7 +191,10 @@ Scope *Scope::pop()
size_t dim = fieldinit_dim;
for (size_t i = 0; i < dim; i++)
enclosing->fieldinit[i] |= fieldinit[i];
/* Workaround regression @@@BUG11777@@@.
Probably this memory is used in future.
mem.free(fieldinit);
*/
fieldinit = NULL;
}
}
Expand Down

0 comments on commit e3696a6

Please sign in to comment.