From: Johannes Schindelin Date: Tue, 02 May 2017 12:38:55 GMT Subject: Re: [PATCH v2 14/25] setup_discovered_git_dir(): help static analysis Message-ID: In-Reply-To: Hi Junio, On Mon, 1 May 2017, Junio C Hamano wrote: > Johannes Schindelin writes: > > > Coverity reported a memory leak in this function. However, it can only > > be called once, as setup_git_directory() changes global state and hence > > is not reentrant. > > > > Mark the variable as static to indicate that this is a singleton. > > > > Signed-off-by: Johannes Schindelin > > --- > > Does something different from what is explained above. Rebase gotcha? That, or just a brain fart. Thanks, will send an updated iteration. Ciao, Dscho