Skip to main content
deleted 40 characters in body
Source Link
MARS
  • 5.2k
  • 3
  • 14
  • 23

*** Error in `/home/jharvard/Dropbox/pset5/speller': double free or corruption (top): 0x0804c698 ***

If I set unload to always return true, load/check work perfectly. Valgrind gives me a lot of invalid read and free errors stemming from my helper function, but I don't understand why it's broken.

C Code: http://pastebin.com/8x01QT2D

Valgrind: http://pastebin.com/GdY1XHSY

*** Error in `/home/jharvard/Dropbox/pset5/speller': double free or corruption (top): 0x0804c698 ***

If I set unload to always return true, load/check work perfectly. Valgrind gives me a lot of invalid read and free errors stemming from my helper function, but I don't understand why it's broken.

C Code: http://pastebin.com/8x01QT2D

Valgrind: http://pastebin.com/GdY1XHSY

*** Error in `/home/jharvard/Dropbox/pset5/speller': double free or corruption (top): 0x0804c698 ***

If I set unload to always return true, load/check work perfectly. Valgrind gives me a lot of invalid read and free errors stemming from my helper function, but I don't understand why it's broken.

Valgrind: http://pastebin.com/GdY1XHSY

Source Link

pset5 unload double free or corruption

*** Error in `/home/jharvard/Dropbox/pset5/speller': double free or corruption (top): 0x0804c698 ***

If I set unload to always return true, load/check work perfectly. Valgrind gives me a lot of invalid read and free errors stemming from my helper function, but I don't understand why it's broken.

C Code: http://pastebin.com/8x01QT2D

Valgrind: http://pastebin.com/GdY1XHSY