config: plug user_config leak
commit6c6b08d26999405a5c67dbabe6f9f232d658fd26
authorJeff King <peff@peff.net>
Tue, 5 Sep 2017 13:04:20 +0000 (5 09:04 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Sep 2017 09:06:26 +0000 (6 18:06 +0900)
tree443c145aa6eb760a414335640c596945b0ce7cdf
parentbaddc96b2cbf66fdcde87509392dc8da6a77f452
config: plug user_config leak

We generate filenames for the user_config ("~/.gitconfig")
and the xdg config ("$XDG_CONFIG_HOME/git/config") and then
decide which to use by looking at the filesystem. But after
selecting one, the unused string is just leaked.

This is a tiny leak, but it creates noise in leak-checker
output.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/config.c