Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 10074
0 votes

PSet 5 Speller: How can the program tell if the dictionary has been successfully freed?

Write the unload function and return true. You, the programmer, need to assume that any node free'd by free(node) has been free'd. … Basically the return true; is telling speller, yes I have finished running the unload function. It is not meant to tell speller that the unload function has free'd all the nodes. …
DinoCoderSaurus's user avatar
3 votes

PSET5: Why is my code working without fully implemented Unload function

Totally awesome that you are asking the question even though it passed check50! Kudos. Notice this line Usage: speller [dictionary] text in the valgrind report. Speller didn't really run. You called …
DinoCoderSaurus's user avatar
2 votes

PSET5 - Valgrind error - no enough bytes are being freed

The nodes created here if (!create_new_node(palabra)) (one for each dictionary word) are never freed.
DinoCoderSaurus's user avatar