All Questions
Tagged with malloc hash-function
2 questions
0
votes
1
answer
572
views
Speller Valgrind leaks bytes + error: munmap_chunk(): invalid pointer error in C
Check50 gives me the munmap_chunk: invalid pointer - it seems I am not copying something right with strcpy.
Valgrind gives me: LEAK SUMMARY: still reachable: 608 bytes in 2 blocks
==2864== 56 bytes ...
0
votes
1
answer
115
views
PSET4 free on malloc in hash function
I'm trying to improve my hash function in Speller and I'm having trouble freeing allocated memmory.
I'm getting * Error in `./speller': free(): invalid pointer: 0x0000000001a02252 *
Aborted
I know ...