]> git.sesse.net Git - nbtscanner/blobdiff - id_list.c
Import nbtscanner 0.1.2.
[nbtscanner] / id_list.c
index 36676d49530b9ac8505aa4e897bcff6202af9f0f..85e8a8824f824590be21aa34c740276f7703e41b 100644 (file)
--- a/id_list.c
+++ b/id_list.c
@@ -55,6 +55,16 @@ void id_list_init()
        }
 }
 
+void id_list_destroy()
+{
+       while (head_free_id) {
+               struct id_list_entry *next = head_free_id->next;
+               free(head_free_id);
+               head_free_id = next;
+       }
+       num_free_ids = 0;
+}
+
 void id_free(struct id_entry *i)
 {
        struct id_list_entry *ie = (struct id_list_entry *)malloc(sizeof(struct id_list_entry));