Questions tagged [freed]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
323 views

Unload() doesn't free any nodes, and throws this error. #pset6

For pset6, in unload(), I'm attempting to free the trie like so: ** * Frees the nodes */ void freeNode(node* ptr) { for (int i = 0; i < 27; i++) { if ((ptr->next[i] != NULL) &...
0
votes
1answer
1k views

How does valgrind work?

Can anyone explain to me how valgrind works exactly? I mean, how does it know when memory is leaking, allocated and freed?