fixed a memory leak in igraph_get_shortest_paths2.c