diff options
Diffstat (limited to 'src/ignore.c')
| -rw-r--r-- | src/ignore.c | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ignore.c b/src/ignore.c index fa71d4941..cdc3edab6 100644 --- a/src/ignore.c +++ b/src/ignore.c @@ -23,6 +23,8 @@ static int load_ignore_file(  	if ((error = git_futils_readbuffer(&fbuf, path)) == GIT_SUCCESS)  		error = git_attr_file__new(&ignores); +	ignores->path = git__strdup(path); +  	scan = fbuf.data;  	while (error == GIT_SUCCESS && *scan) { @@ -49,10 +51,10 @@ static int load_ignore_file(  	}  	git_futils_freebuffer(&fbuf); +	git__free(match);  	if (error != GIT_SUCCESS) {  		git__rethrow(error, "Could not open ignore file '%s'", path); -		git__free(match);  		git_attr_file__free(ignores);  	} else {  		*out = ignores;  | 
