lol free the children!
This commit is contained in:
parent
a5aa29f1ac
commit
1efded8114
@ -27,13 +27,13 @@ void free_all(struct Node* node) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
for (int i = 0; i < 10; i++) {
|
for (int i = 0; i < 10; i++) {
|
||||||
free_all(node);
|
free_all(node->children[i]);
|
||||||
};
|
};
|
||||||
|
|
||||||
free(node);
|
free(node);
|
||||||
}
|
}
|
||||||
|
|
||||||
int numbers[] = {113, 11354, 77777, 255044};
|
int numbers[] = {11354, 113, 77777, 255044};
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
struct Node* root = newNode();
|
struct Node* root = newNode();
|
||||||
|
Loading…
Reference in New Issue
Block a user