[sr-dev] git:master:2a80448b: xprint: use pkg_reallocxf() to ensure old pointer is freed in case of failure