fix a leak in the local-allocator

This commit is contained in:
Wolfgang Bumiller 2012-12-20 20:26:54 +01:00
parent 98b6772db9
commit b595ec03f8

1
ir.c
View file

@ -2369,6 +2369,7 @@ error:
cleanup:
for (i = 0; i < vec_size(alloc.locals); ++i)
ir_value_delete(alloc.locals[i]);
vec_free(alloc.unique);
vec_free(alloc.locals);
vec_free(alloc.sizes);
vec_free(alloc.positions);