3.12 Backport: Fixed xfs error memory leak, via 9b3b77fe661875f19ed748b67fb1eeb57d602b7e