According to valgrind, I have some serious memory leak errors. The strange thing is, my program doesn't crash when I run it from visual studio. However, when I try to compile on linux, I get a segfault, so I'm guessing there is something wrong.According to valgrind, I have some serious memo