Why not run it with Valgrind to find out if there is a problem or not?