From: Stefan Beller Date: Thu, 31 Mar 2016 17:47:43 GMT Subject: Re: [PATCHv2 3/4] bundle: don't leak an fd in case of early return Message-ID: In-Reply-To: On Wed, Mar 30, 2016 at 10:41 AM, Eric Sunshine wrote: >> - else if (ref_count < 0) >> - return -1; >> + else if (ref_count < 0) { >> + if (!bundle_to_stdout) >> + close(bundle_fd); > > Why is this close() here considering that it gets closed by the 'err' path? Thanks for pointing out; fixed in a reroll.