diff options
author | Junio C Hamano <junkio@cox.net> | 2006-05-28 13:39:45 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-28 13:39:45 -0700 |
commit | 15cee32e2cd6c64ce684c7830453668363c8b2be (patch) | |
tree | fbef1b4557951360b847f65edfc2c70f7d940959 /builtin-rev-list.c | |
parent | Merge branch 'master' into next (diff) | |
parent | Merge branch 'jc/mailinfo' (diff) | |
download | tgif-15cee32e2cd6c64ce684c7830453668363c8b2be.tar.xz |
Merge branch 'master' into next
* master:
Fix memory leak in "git rev-list --objects"
gitview: Move the console error messages to message dialog
gitview: Add key binding for F5.
Let git-clone to pass --template=dir option to git-init-db.
Make cvsexportcommit create parent directories as needed.
Document current cvsexportcommit limitations.
Do not call 'cmp' with non-existant -q flag.
Fix "--abbrev=xyz" for revision listing
t1002: use -U0 instead of --unified=0
format-patch: -n and -k are mutually exclusive.
Diffstat (limited to 'builtin-rev-list.c')
-rw-r--r-- | builtin-rev-list.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin-rev-list.c b/builtin-rev-list.c index f11dbd65c1..5277d3cf12 100644 --- a/builtin-rev-list.c +++ b/builtin-rev-list.c @@ -103,6 +103,7 @@ static struct object_list **process_blob(struct blob *blob, if (obj->flags & (UNINTERESTING | SEEN)) return p; obj->flags |= SEEN; + name = strdup(name); return add_object(obj, p, path, name); } @@ -122,6 +123,7 @@ static struct object_list **process_tree(struct tree *tree, if (parse_tree(tree) < 0) die("bad tree object %s", sha1_to_hex(obj->sha1)); obj->flags |= SEEN; + name = strdup(name); p = add_object(obj, p, path, name); me.up = path; me.elem = name; @@ -134,6 +136,7 @@ static struct object_list **process_tree(struct tree *tree, p = process_tree(entry->item.tree, p, &me, entry->name); else p = process_blob(entry->item.blob, p, &me, entry->name); + free(entry->name); free(entry); entry = next; } |