Hi - I'm fairly new to C and just wrote a very simple generic queue. I wrote a small loop to test out my queue (add 1-5 to the queue and then print it), and it works fine. The problem is that I get a 'segmentation fault' message at the end of the run. I traced it using gdb and found that it occurs after the "return 0;" in my main function. I made sure I freed the memory for the queue and its nodes after their use, so I have no idea why this happens. Any help will be great - thanks!