Fix a memory leak, thanks valgrind!