diff options
-rw-r--r-- | glnx-fdio.c | 2 | ||||
-rw-r--r-- | glnx-xattrs.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/glnx-fdio.c b/glnx-fdio.c index 3fa73b5..fb57280 100644 --- a/glnx-fdio.c +++ b/glnx-fdio.c @@ -829,7 +829,7 @@ glnx_regfile_copy_bytes (int fdf, int fdt, off_t max_bytes) have_cfr = 0; try_cfr = false; } - else if (G_IN_SET (errno, EXDEV, EOPNOTSUPP)) + else if (G_IN_SET (errno, EXDEV, EINVAL, EOPNOTSUPP)) /* We won't try cfr again for this run, but let's be * conservative and not mark it as available/unavailable until * we know for sure. diff --git a/glnx-xattrs.c b/glnx-xattrs.c index 892d534..785ad0e 100644 --- a/glnx-xattrs.c +++ b/glnx-xattrs.c @@ -181,7 +181,7 @@ get_xattrs_impl (const char *path, { if (errno == ERANGE) { - g_free (xattr_names); + g_free (g_steal_pointer (&xattr_names)); goto again; } glnx_set_prefix_error_from_errno (error, "%s", "llistxattr"); |