sysroot: Close sysroot fd in finalize

Just noticed this while I was going to add another one there.
This commit is contained in:
Colin Walters 2015-04-19 15:25:05 -04:00
parent 02b3a81d11
commit f08cb802ea
1 changed files with 3 additions and 0 deletions

View File

@ -66,6 +66,9 @@ ostree_sysroot_finalize (GObject *object)
g_clear_object (&self->sepolicy); g_clear_object (&self->sepolicy);
g_clear_object (&self->repo); g_clear_object (&self->repo);
if (self->sysroot_fd != -1)
(void) close (self->sysroot_fd);
G_OBJECT_CLASS (ostree_sysroot_parent_class)->finalize (object); G_OBJECT_CLASS (ostree_sysroot_parent_class)->finalize (object);
} }