setup_discovered_git_dir(): plug memory leak
commit2d4dcf210e156153a9c1b11bc60d647d5a327624
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 4 May 2017 13:56:51 +0000 (4 15:56 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 8 May 2017 03:18:19 +0000 (8 12:18 +0900)
tree4b84d3f7306f9d197b2fca22ad1e020fdcc30c5e
parentda6f847559d8794f25da9f7c090929baebce7751
setup_discovered_git_dir(): plug memory leak

The setup_explicit_git_dir() function does not take custody of the string
passed as first parameter; we have to release it if we turned the value of
git_dir into an absolute path.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
setup.c