Put the custom allocator in its own lib, as to lessen the difficulty to switch between libc's allocator and a custom one (#7)
This commit is contained in:
parent
713f0f0302
commit
cb7f3c3fdf
85 changed files with 1121 additions and 877 deletions
|
|
@ -86,10 +86,10 @@ void free_node(t_node self)
|
|||
t_usize idx;
|
||||
|
||||
if (self.single_str)
|
||||
me_free(self.single_str);
|
||||
mem_free(self.single_str);
|
||||
idx = 0;
|
||||
while (idx < self.childs_count)
|
||||
free_node(self.childs[idx++]);
|
||||
if (self.childs_count != 0)
|
||||
me_free(self.childs);
|
||||
mem_free(self.childs);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue