The only call into this function passes `NULL` for the `coords` parameter.
Additionally it did not make much sense to free this pointer on behalf of the
caller. This function is not designed to be called in a loop, so if the caller
wants their passed-in parameter freed they should do it themselves prior to
calling.
Queue Q;
DistType max_dist = 0;
- if (coords != NULL) {
- free(coords[0]);
- free(coords);
- }
-
/* this matrix stores the distance between each node and each "pivot" */
*Coords = coords = N_GNEW(dim, DistType *);
for (i = 0; i < dim; i++)