Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'mh/deref-symref-over-helper-transport'
[gitweb.git]
/
unpack-trees.c
diff --git
a/unpack-trees.c
b/unpack-trees.c
index 256df47b3533bc085428d3fc5239173200a8e648..be84ba2607ad2dbdb17397869c459418abad78e4 100644
(file)
--- a/
unpack-trees.c
+++ b/
unpack-trees.c
@@
-1157,6
+1157,8
@@
int unpack_trees(unsigned len, struct tree_desc *t, struct unpack_trees_options
if (o->dst_index) {
discard_index(o->dst_index);
*o->dst_index = o->result;
+ } else {
+ discard_index(&o->result);
}
done: