Re: [PATCH 1/2] Fix config lockfile handling.
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:59
Johannes Schindelin [off-list ref] writes:
Hi, On Fri, 14 Dec 2007, Kristian Høgsberg wrote:quoted
- struct lock_file *lock = NULL; + struct lock_file lock;AFAICT this cannot work. At least not reliably. An atexit() handler will access all (even closed) lockfiles.
Correct. It cannot be on the stack.