lol free the children!

This commit is contained in:
Daniel Olsen 2020-11-25 10:06:11 +01:00
parent a5aa29f1ac
commit 1efded8114

View File

@ -27,13 +27,13 @@ void free_all(struct Node* node) {
};
for (int i = 0; i < 10; i++) {
free_all(node);
free_all(node->children[i]);
};
free(node);
}
int numbers[] = {113, 11354, 77777, 255044};
int numbers[] = {11354, 113, 77777, 255044};
int main(void) {
struct Node* root = newNode();