diff --git a/src/libostree/ostree-sysroot.c b/src/libostree/ostree-sysroot.c index 37063e28..de92691a 100644 --- a/src/libostree/ostree-sysroot.c +++ b/src/libostree/ostree-sysroot.c @@ -260,7 +260,10 @@ void ostree_sysroot_unload (OstreeSysroot *self) { if (self->sysroot_fd != -1) - (void) close (self->sysroot_fd); + { + (void) close (self->sysroot_fd); + self->sysroot_fd = -1; + } } /**