I would very much appreciate it of somebody could tell me what I did wrong or could help me get on the right track to the correct solution. My program overall works fine, except the end result isn't as expected.
I believe the issue lies in the check section and has something to do with the conversion to lowercase letters,thought I'm not entirely sure where.
As for the memory leaks I really don't understand what went wrong here.
Thank you for helping out!
When I run: ./speller texts/lalaland.txt
edited code out to not spoil it for everybody