projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7568db
)
lib/repo: Fix a memory leak of options in ostree_repo_create()
author
Philip Withnall
<withnall@endlessm.com>
Tue, 14 Nov 2017 16:15:34 +0000
(16:15 +0000)
committer
Atomic Bot
<atomic-devel@projectatomic.io>
Tue, 14 Nov 2017 23:13:14 +0000
(23:13 +0000)
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1341
Approved by: dbnicholson
src/libostree/ostree-repo.c
patch
|
blob
|
history
diff --git
a/src/libostree/ostree-repo.c
b/src/libostree/ostree-repo.c
index 7f2929b737ca8697898424143e5ed7a1f3d68b77..22214056d0e121aca09cd5b63fbb01e778c00d1a 100644
(file)
--- a/
src/libostree/ostree-repo.c
+++ b/
src/libostree/ostree-repo.c
@@
-1918,8
+1918,9
@@
ostree_repo_create (OstreeRepo *self,
g_variant_new_variant (g_variant_new_string (self->collection_id)));
glnx_autofd int repo_dir_fd = -1;
+ g_autoptr(GVariant) options = g_variant_ref_sink (g_variant_builder_end (builder));
if (!repo_create_at_internal (AT_FDCWD, repopath, mode,
-
g_variant_builder_end (builder)
,
+
options
,
&repo_dir_fd,
cancellable, error))
return FALSE;