summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 98cb6f3)
raw | patch | inline | side by side (parent: 98cb6f3)
author | Pierre Habouzit <madcoder@debian.org> | |
Wed, 22 Jul 2009 21:51:55 +0000 (23:51 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 23 Jul 2009 04:57:41 +0000 (21:57 -0700) |
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pack-revindex.c | patch | blob | history | |
walker.c | patch | blob | history |
diff --git a/pack-revindex.c b/pack-revindex.c
index 1de53c8934c03b46604e94cbf4237ad5ffc57f83..77a0465be6f6a79814aa3c009612736770b342a1 100644 (file)
--- a/pack-revindex.c
+++ b/pack-revindex.c
if (pack_revindex_hashsz) {
int i;
for (i = 0; i < pack_revindex_hashsz; i++)
- if (pack_revindex[i].revindex)
- free(pack_revindex[i].revindex);
+ free(pack_revindex[i].revindex);
free(pack_revindex);
pack_revindex_hashsz = 0;
}
diff --git a/walker.c b/walker.c
index e57630e983488e5c0222dc47a5e32d6efb184762..11d9052ed86ab17b56ab86ef21b7c98095e410dc 100644 (file)
--- a/walker.c
+++ b/walker.c
{
while (targets--) {
free(target[targets]);
- if (write_ref && write_ref[targets])
+ if (write_ref)
free((char *) write_ref[targets]);
}
}