All Questions
Tagged with memory-leak load
10 questions
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
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
241
views
Pset 5 - valgrind errror because of memory leak
Succesfully finished Pset5 except for one memory leak error.
This is the Valgrind and Help50 report:
==32337==
==32337== HEAP SUMMARY:
==32337== in use at exit: 47 bytes in 1 blocks
==32337== ...
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 ...
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
2
answers
102
views
pset5. Can't trace memory leak
Load function (with a trie data structure)
//DEBUG
unsigned int allocs = 0;
// define node and create root
typedef struct node
{
bool is_word;
struct node* children[27];
}
node;
node* root;
...
0
votes
1
answer
283
views
PSET5: memory leak
Mem. leaking. help.
Only written load function but have the free function within load. Haven't fleshed out unload yet. Want to test that load works before fleshing out unload hence have included the ...
0
votes
1
answer
94
views
Pset5 all words are misspelled and Valgrind reports 15 errors
I can compile pset5 but when I run the program, it treats all words misspelled. Also, Valgrind reports 15 errors and help50 hints that I am trying to access 1 byte of memory that isn't mine. I have no ...
0
votes
1
answer
322
views
Problems with letters "a" and "I" misspellings
My program loads and checks correctly with small texts and the large dictionary. Although when I load large texts, for some reason calls misspelled for the letters "a" and 'I'.
I'm struggling with ...
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 ...