lib/repo: Fix double close()

Should probably change `_take_fd()` to take a pointer and set to `-1`
at some point.

Regression from 8d58ab1002

Closes: #862
Approved by: jlebon
This commit is contained in:
Colin Walters 2017-05-16 09:57:31 -04:00 committed by Atomic Bot
parent a5eef45deb
commit 19827a9965
1 changed files with 1 additions and 0 deletions

View File

@ -2283,6 +2283,7 @@ list_loose_objects_at (OstreeRepo *self,
g_auto(GLnxDirFdIterator) dfd_iter = { 0, };
if (!glnx_dirfd_iterator_init_take_fd (target_dfd, &dfd_iter, error))
return FALSE;
target_dfd = -1; /* Transferred */
while (TRUE)
{