Fix memory leaks in path finding