fix memory leak in xattr