git-reset to remove "$GIT_DIR/MERGE_MSG"
[gitweb.git] / diff-delta.c
index 51e2e561772f490eb59f534a62754993bba2a743..fa16d06c8d1e85a458428c673cb2f589857f5424 100644 (file)
@@ -392,7 +392,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;