summaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2015-05-28 03:54:43 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-05-28 11:32:04 -0700
commit3a1b3126ed5a0b51d5b1fdba827c92bf2acf5fc6 (patch)
tree1818bbab5184b0774adb19b3fc6606e07f0d3256 /sha1_file.c
parentread-cache.c: drop PROT_WRITE from mmap of index (diff)
downloadtgif-3a1b3126ed5a0b51d5b1fdba827c92bf2acf5fc6.tar.xz
config.c: fix mmap leak when writing config
We mmap the existing config file, but fail to unmap it if we hit an error. The function already has a shared exit path, so we can fix this by moving the mmap pointer to the function scope and clearing it in the shared exit. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_file.c')
0 files changed, 0 insertions, 0 deletions