I've been working on this project for school for the last week now, and I've had this problem that I've been banging my head against for a couple of days now. Functionality of the program isnt an issue, I have that pretty down pat. I am having an issue with dynamic memory allocation. At the top of my program I allocate some memory to store the important data in, and then attempt to free it at the bottom when I am all finished with it. For whatever reason it wont free the memory that has been allocated.
I have tried to figure out what is causing it to not free the memory, however I've had no luck. I've moved around the free() statements, and at some random points it will free it and not free it.
I have attached my project file containing main(). I would greatly appreciate any help that can be offered, or a pointer in the right direction.
Almost forgot to include this. I am running Ubuntu 9.04 and GCC 4.3.3
Thanks in advance,