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:
parent
a5eef45deb
commit
19827a9965
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue