All Questions
5 questions
0
votes
1
answer
383
views
56 Bytes of leaked memory in speller.c pset5
56 Byte memory leak - not sure where it is coming from. Valgrind points to the malloc'd space for nodnew in the load function - in my first version, I created the pointer nodenew and malloc'd the ...
0
votes
1
answer
247
views
pset5 speller unload (trie) leaking memory
My unload function is leaking memory. Valgrind says that 8,960 bytes in 40 blocks were definitely lost, and 38,752 bytes in 173 blocks were indirectly lost. I'm not sure why...my unload function makes ...
0
votes
1
answer
620
views
Can't make Valgrind happy in Speller (pset5)
I'm working through ./speller in pset5, mainly the load() function. My function loads the dictionary without any issues, and Valgrind even shows no memory leaks. The problem is I have a ridiculous ...
0
votes
1
answer
79
views
Speller pset 5: Valgrind gives me error
I am doing pset 5 speller and It seems to be okey less valgrind check.
Valgrind HELP50 gives me these errors
==22585== Use of uninitialised value of size 8
==22585== at 0x40110B: hash (dictionary.c:...
0
votes
1
answer
85
views
PSET5. Free a variable outside a loop. leaking memory
I've been stuck for days in the implementation of LOAD with a TRIE data structure.
I think my code works (well it doesn't show seg faults) but I am getting a lot of memory leaks.
I implemented the ...