summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-repo-libarchive.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/libostree/ostree-repo-libarchive.c
parent4f33515316a374867e093171f219cbd6e5e4f5bd (diff)
downloadostree-7a62d64968160d27cbd90aeeed754eb185135f91.tar.gz
Use g_autofree instead of gs_free
Diffstat (limited to 'src/libostree/ostree-repo-libarchive.c')
-rw-r--r--src/libostree/ostree-repo-libarchive.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libostree/ostree-repo-libarchive.c b/src/libostree/ostree-repo-libarchive.c
index 613b493e..d8001e94 100644
--- a/src/libostree/ostree-repo-libarchive.c
+++ b/src/libostree/ostree-repo-libarchive.c
@@ -128,10 +128,10 @@ write_libarchive_entry_to_mtree (OstreeRepo *self,
gs_unref_object OstreeMutableTree *subdir = NULL;
gs_unref_object OstreeMutableTree *parent = NULL;
gs_unref_object OstreeMutableTree *hardlink_source_parent = NULL;
- gs_free char *hardlink_source_checksum = NULL;
+ g_autofree char *hardlink_source_checksum = NULL;
gs_unref_object OstreeMutableTree *hardlink_source_subdir = NULL;
- gs_free guchar *tmp_csum = NULL;
- gs_free char *tmp_checksum = NULL;
+ g_autofree guchar *tmp_csum = NULL;
+ g_autofree char *tmp_checksum = NULL;
pathname = archive_entry_pathname (entry);
@@ -295,7 +295,7 @@ ostree_repo_write_archive_to_mtree (OstreeRepo *self,
struct archive_entry *entry;
int r;
gs_unref_object GFileInfo *tmp_dir_info = NULL;
- gs_free guchar *tmp_csum = NULL;
+ g_autofree guchar *tmp_csum = NULL;
a = archive_read_new ();
#ifdef HAVE_ARCHIVE_READ_SUPPORT_FILTER_ALL