Merge branch 'jc/prefix-filename-allocates' into maint
Leakfix. * jc/prefix-filename-allocates: hash-object: prefix_filename() returns allocated memory these days
This commit is contained in:
@ -115,7 +115,7 @@ int cmd_hash_object(int argc, const char **argv, const char *prefix)
|
|||||||
prefix = setup_git_directory_gently(&nongit);
|
prefix = setup_git_directory_gently(&nongit);
|
||||||
|
|
||||||
if (vpath && prefix)
|
if (vpath && prefix)
|
||||||
vpath = xstrdup(prefix_filename(prefix, vpath));
|
vpath = prefix_filename(prefix, vpath);
|
||||||
|
|
||||||
git_config(git_default_config, NULL);
|
git_config(git_default_config, NULL);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user