Skip to content

Commit 44257f7

Browse files
committed
Merge branch 'jc/prefix-filename-allocates'
Leakfix. * jc/prefix-filename-allocates: hash-object: prefix_filename() returns allocated memory these days
2 parents 3d141d8 + 92a5d1c commit 44257f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/hash-object.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ int cmd_hash_object(int argc, const char **argv, const char *prefix)
115115
prefix = setup_git_directory_gently(&nongit);
116116

117117
if (vpath && prefix)
118-
vpath = xstrdup(prefix_filename(prefix, vpath));
118+
vpath = prefix_filename(prefix, vpath);
119119

120120
git_config(git_default_config, NULL);
121121

0 commit comments

Comments
 (0)