summaryrefslogtreecommitdiff
path: root/src/libotutil/ot-fs-utils.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2015-05-04 17:58:26 -0400
committerMatthew Barnes <mbarnes@redhat.com>2015-05-06 21:50:17 -0400
commit7a62d64968160d27cbd90aeeed754eb185135f91 (patch)
treeb6bc24af82d7ac03f42ec58f15507caa8cca869f /src/libotutil/ot-fs-utils.c
parent4f33515316a374867e093171f219cbd6e5e4f5bd (diff)
downloadostree-7a62d64968160d27cbd90aeeed754eb185135f91.tar.gz
Use g_autofree instead of gs_free
Diffstat (limited to 'src/libotutil/ot-fs-utils.c')
-rw-r--r--src/libotutil/ot-fs-utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libotutil/ot-fs-utils.c b/src/libotutil/ot-fs-utils.c
index b0f41a64..416d2bb9 100644
--- a/src/libotutil/ot-fs-utils.c
+++ b/src/libotutil/ot-fs-utils.c
@@ -61,7 +61,7 @@ ot_lgetxattrat (int dfd,
/* A workaround for the lack of lgetxattrat(), thanks to Florian Weimer:
* https://mail.gnome.org/archives/ostree-list/2014-February/msg00017.html
*/
- gs_free char *full_path = g_strdup_printf ("/proc/self/fd/%d/%s", dfd, path);
+ g_autofree char *full_path = g_strdup_printf ("/proc/self/fd/%d/%s", dfd, path);
GBytes *bytes = NULL;
ssize_t bytes_read, real_size;
char *buf;
@@ -103,7 +103,7 @@ ot_lsetxattrat (int dfd,
/* A workaround for the lack of lsetxattrat(), thanks to Florian Weimer:
* https://mail.gnome.org/archives/ostree-list/2014-February/msg00017.html
*/
- gs_free char *full_path = g_strdup_printf ("/proc/self/fd/%d/%s", dfd, path);
+ g_autofree char *full_path = g_strdup_printf ("/proc/self/fd/%d/%s", dfd, path);
int res;
do