checkout: Fix file descriptor leak for copying checkouts

Hardlink checkouts didn't hit this, but we need to close the input
stream.
This commit is contained in:
Colin Walters 2013-09-11 10:58:22 -04:00
parent c8744beb17
commit 0238a2c26c
1 changed files with 3 additions and 0 deletions

View File

@ -502,6 +502,9 @@ checkout_one_file_at (OstreeRepo *repo,
goto out;
}
}
if (!g_input_stream_close (input, cancellable, error))
goto out;
}
ret = TRUE;