projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b5c208
)
index-pack: don't leak leaf delta result
author
Nicolas Pitre
<nico@cam.org>
Thu, 23 Oct 2008 19:05:59 +0000
(15:05 -0400)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 24 Oct 2008 05:32:43 +0000
(22:32 -0700)
Another (but minor this time) fallout from commit
9441b61
(index-pack:
rationalize delta resolution code, 2008-10-17).
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
index-pack.c
patch
|
blob
|
history
diff --git
a/index-pack.c
b/index-pack.c
index f109a00270af28c8ea04a9ff704b6db70b8ff52e..7db7fbb56b701fa5d3c7b810948b72dd10c0e3c7 100644
(file)
--- a/
index-pack.c
+++ b/
index-pack.c
@@
-550,8
+550,10
@@
static void find_unresolved_deltas(struct base_data *base,
find_delta_children(&base_spec, &ofs_first, &ofs_last);
}
- if (ref_last == -1 && ofs_last == -1)
+ if (ref_last == -1 && ofs_last == -1) {
+ free(base->data);
return;
+ }
link_base_data(prev_base, base);