so im working with huffman encoding. i have a porgram that runs, but there are 2 problems im having.
first (and more important): the program will run, but seg.faults when it occurs a punctuation followed by a new line character. it can handle the two by themselves, but it screws up when they are next to each other and i dont know why.
second: i have a memory leak. there are two allocations i cant seem to free correctly.
the code is here
i can provide the other files if you would like, but it will have to be a mediafire link.
thank you so much for even looking at my code. any bit helps