Skip to content

Commit f7af757

Browse files
committed
Merge branch 'maint-1.6.0' into maint-1.6.1
* maint-1.6.0: process_{tree,blob}: Remove useless xstrdup calls
2 parents bb11eb3 + de551d4 commit f7af757

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

list-objects.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ static void process_blob(struct rev_info *revs,
2323
if (obj->flags & (UNINTERESTING | SEEN))
2424
return;
2525
obj->flags |= SEEN;
26-
name = xstrdup(name);
2726
add_object(obj, p, path, name);
2827
}
2928

@@ -78,7 +77,6 @@ static void process_tree(struct rev_info *revs,
7877
if (parse_tree(tree) < 0)
7978
die("bad tree object %s", sha1_to_hex(obj->sha1));
8079
obj->flags |= SEEN;
81-
name = xstrdup(name);
8280
add_object(obj, p, path, name);
8381
me.up = path;
8482
me.elem = name;

reachable.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ static void process_tree(struct tree *tree,
4848
obj->flags |= SEEN;
4949
if (parse_tree(tree) < 0)
5050
die("bad tree object %s", sha1_to_hex(obj->sha1));
51-
name = xstrdup(name);
5251
add_object(obj, p, path, name);
5352
me.up = path;
5453
me.elem = name;

0 commit comments

Comments
 (0)