notes: don't leak memory in git_config_get_notes_strategy
commit344b548475b86f9f95e9fbcd93022f8083918cc7
authorStefan Beller <sbeller@google.com>
Fri, 1 Apr 2016 00:35:43 +0000 (31 17:35 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 1 Apr 2016 17:31:42 +0000 (1 10:31 -0700)
tree7748a0635594f20aedc87bf7a1b316550fb52268
parenta0feb1b1870fbb74f65d6a8951e4b2e2a2347ecf
notes: don't leak memory in git_config_get_notes_strategy

This function asks for the value of a configuration and after
using the value does not have to retain ownership of it.
git_config_get_string_const() however is a function to get a
copy of the value, but we forget to free it before we return.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/notes.c