I keep getting a hit on valgrind. It says to check line 99 but I know I free(cursor) before the end of the block :-(

my entire code

enter image description here

  • Does it work with the smaller dictionary? – Vsjain Nov 9 '20 at 4:44
  • Hi. Thanks for the comment. I re-did my code and fixed where I thought it would be buggy. I initialized node pointers I may have missed before. Speller compiles. But I get nothing back on check50, as in nothing back and it fails all the test cases :-( now I'm stumped again. pastebin.com/ckZxw3iX – Andrew Nov 9 '20 at 9:34
  • Hi. Please edit the question and replace the screen shot. Cut and paste the actual code into the question. Can't test code if it can't be copied and nobody is going to transcribe all the code. – Cliff B Nov 9 '20 at 18:10
  • Hi Cliff! Thanks for your comment. Alright, updated code in full thru pastebin link and also updated the screenshot to show valgrind. I've been at this for the week and am on my wits end. i'd really be grateful for any help. Thank you! – Andrew Nov 10 '20 at 12:24

You must log in to answer this question.

Browse other questions tagged .