X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=diff-delta.c;h=25a798d050c6319f3d524c9c605ab70ea35ae7a1;hb=4feb5e8372923951f16d1ae7c330156a5e4c7797;hp=c61887518874d550f66d2d52bd7559d023fcb176;hpb=9f6532dd65eb45f8af064ffd872ea5bb595c40ec;p=git.git diff --git a/diff-delta.c b/diff-delta.c index c61887518..25a798d05 100644 --- 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]++; - entries--; } } @@ -230,10 +229,6 @@ struct delta_index * create_delta_index(const void *buf, unsigned long bufsize) } 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; }