Fixed memory allocation bug in CreateAdaptAdjacencies