From: Linus Torvalds Date: Fri, 15 May 2009 20:08:49 GMT Subject: Re: Funny error with git gc... Message-ID: In-Reply-To: On Fri, 15 May 2009, Johannes Schindelin wrote: > > fd = mkstemp(template); > + if (fd < 0) { > + release_pack_memory((size_t)-1ll, -1); > + fd = mkstemp(template); This is wrong. You can't use "template" twice. You need to re-initialize it. The first one will blow away the XXXX pattern. Linus