X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=diff-delta.c;h=9f998d0a73e0127d3a68a7caecb3727569149871;hb=6900679c2f6d937a5a6ef616869c8887690ad19d;hp=51e2e561772f490eb59f534a62754993bba2a743;hpb=2ad6ba353aa3815894674a0dee56aa75f8a5fc7b;p=git.git diff --git a/diff-delta.c b/diff-delta.c index 51e2e5617..9f998d0a7 100644 --- a/diff-delta.c +++ b/diff-delta.c @@ -18,11 +18,8 @@ * licensing gets turned into GPLv2 within this project. */ -#include -#include -#include "delta.h" - #include "git-compat-util.h" +#include "delta.h" /* maximum hash entry list for the same hash bucket */ #define HASH_LIMIT 64 @@ -392,7 +389,7 @@ create_delta(const struct delta_index *index, outsize = max_size + MAX_OP_SIZE + 1; if (max_size && outpos > max_size) break; - out = realloc(out, outsize); + out = xrealloc(out, outsize); if (!out) { free(tmp); return NULL;