Commit Diff
--- lib/fetch.c +++ lib/fetch.c @@ -347,6 +347,10 @@ got_fetch_pack(struct got_object_id **pack_hash, struc break; packfile_size = packfile_size_cur; } + } + if (close(imsg_fetchfds[0]) == -1) { + err = got_error_from_errno("close"); + goto done; } if (waitpid(fetchpid, &fetchstatus, 0) == -1) { err = got_error_from_errno("waitpid");