projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
git-svn: add 'log' command, a facsimile of basic `svn log'
[git.git]
/
diff-delta.c
diff --git
a/diff-delta.c
b/diff-delta.c
index
c618875
..
25a798d
100644
(file)
--- a/
diff-delta.c
+++ b/
diff-delta.c
@@
-199,7
+199,6
@@
struct delta_index * create_delta_index(const void *buf, unsigned long bufsize)
entry->next = hash[i];
hash[i] = entry++;
hash_count[i]++;
entry->next = hash[i];
hash[i] = entry++;
hash_count[i]++;
- entries--;
}
}
}
}
@@
-230,10
+229,6
@@
struct delta_index * create_delta_index(const void *buf, unsigned long bufsize)
}
free(hash_count);
}
free(hash_count);
- /* If we didn't use all hash entries, free the unused memory. */
- if (entries)
- index = realloc(index, memsize - entries * sizeof(*entry));
-
return index;
}
return index;
}