8064f6e902cc4c3062cffa2d1d307ee9cf1893bb replaced lib/xdot’s inline copy of a
subset of the agxbuf.h API with an include of the header containing the full
API. This gives us access to `agxbdisown`. This function effectively does the
work of `agxbuse;strdup;agxbfree` by taking the existing dynamically allocated
buffer within the `agxbuf` object, rather than making yet another copy of this
data only to discard the original.
agxbuf xb;
agxbinit(&xb, BUFSIZ, buf);
_printXDot(x, agxbput_, &xb, printXDot_Op);
- s = strdup(agxbuse(&xb));
- agxbfree(&xb);
+ s = agxbdisown(&xb);
return s;
}