]> git.ipfire.org Git - thirdparty/git.git/blobdiff - config.c
Start the 2.46 cycle
[thirdparty/git.git] / config.c
index eebce8c7e09393fa8756230e483965674b9afbdf..ae3652b08fa6f36af6c085e36b89efdd46d72389 100644 (file)
--- a/config.c
+++ b/config.c
@@ -1584,8 +1584,10 @@ static int git_default_core_config(const char *var, const char *value,
        if (!strcmp(var, "core.askpass"))
                return git_config_string(&askpass_program, var, value);
 
-       if (!strcmp(var, "core.excludesfile"))
+       if (!strcmp(var, "core.excludesfile")) {
+               free((char *)excludes_file);
                return git_config_pathname(&excludes_file, var, value);
+       }
 
        if (!strcmp(var, "core.whitespace")) {
                if (!value)