]> de.git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
fix a leak in the local-allocator
authorWolfgang Bumiller <blub@speed.at>
Thu, 20 Dec 2012 19:26:54 +0000 (20:26 +0100)
committerWolfgang Bumiller <blub@speed.at>
Thu, 20 Dec 2012 19:26:54 +0000 (20:26 +0100)
ir.c

diff --git a/ir.c b/ir.c
index 30cdda9095cafcd7850bf89b3b9ac41a42a291e6..2c65ad1787b5665e919e977bb872c392d67182c4 100644 (file)
--- a/ir.c
+++ b/ir.c
@@ -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);