diff --git a/ostree/ot-builtin-compose.c b/ostree/ot-builtin-compose.c index a98751b9..849de45c 100644 --- a/ostree/ot-builtin-compose.c +++ b/ostree/ot-builtin-compose.c @@ -140,6 +140,9 @@ merge_dir (GFile *destination, if (!g_file_move (src_subfile, dest_subfile, 0, NULL, NULL, NULL, error)) goto out; } + + g_clear_object (&dest_subfile); + g_clear_object (&src_subfile); } if (temp_error) {