ハッシュのfreeの方法を修正
[YACASL2.git] / src / label.c
index de37b94..e88cc90 100644 (file)
@@ -1,10 +1,3 @@
-#include <stdio.h>
-#include <string.h>
-#include <assert.h>
-
-#include "cerr.h"
-#include "cmem.h"
-#include "hash.h"
 #include "assemble.h"
 
 /**
@@ -175,5 +168,6 @@ void freelabel()
             FREE(p->label);
             FREE(p);
         }
+        labels[i] = NULL;
     }
 }