]> granicus.if.org Git - yasm/commitdiff
nasm_pp_cleanup(): Do a better job of cleaning up.
authorPeter Johnson <peter@tortall.net>
Sat, 6 Feb 2010 09:13:56 +0000 (09:13 -0000)
committerPeter Johnson <peter@tortall.net>
Sat, 6 Feb 2010 09:13:56 +0000 (09:13 -0000)
svn path=/trunk/yasm/; revision=2283

modules/preprocs/nasm/nasm-pp.c

index 5762e9d30b9ad21b1740b7aba240ce1060629b16..b7c99832595338b52f1d70cb0c125e0366226bfa 100644 (file)
@@ -5065,7 +5065,13 @@ pp_cleanup(int pass_)
                 free_llist(builtindef);
                 free_llist(stddef);
                 free_llist(predef);
+                builtindef = NULL;
+                stddef = NULL;
+                predef = NULL;
+                freeTokens = NULL;
                 delete_Blocks();
+                blocks.next = NULL;
+                blocks.chunk = NULL;
         }
 }