]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
fix memleak in ast_local_codegen
authorWolfgang Bumiller <blub@speed.at>
Mon, 15 Apr 2013 18:56:48 +0000 (20:56 +0200)
committerWolfgang Bumiller <blub@speed.at>
Mon, 15 Apr 2013 18:56:48 +0000 (20:56 +0200)
ast.c

diff --git a/ast.c b/ast.c
index b1b7ba826cc9b7a3d085c993fbcd3a1c24e0c58e..039beb145000b7d3b195128e6c3ded0404189523 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -1431,6 +1431,7 @@ bool ast_local_codegen(ast_value *self, ir_function *func, bool param)
             self->ir_values[ai]->unique_life = true;
             self->ir_values[ai]->locked      = true;
         }
+        mem_d(name);
     }
     else
     {