diff options
-rw-r--r-- | builtin/config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin/config.c b/builtin/config.c index e1c33e0691..e660d48300 100644 --- a/builtin/config.c +++ b/builtin/config.c @@ -248,6 +248,10 @@ static int get_value(const char *key_, const char *regex_) git_config_from_file(fn, system_wide, data); free(key); + if (key_regexp) { + regfree(key_regexp); + free(key_regexp); + } if (regexp) { regfree(regexp); free(regexp); |