From b75c6c6de1e8f801edb142b59e7809a166a63adc Mon Sep 17 00:00:00 2001 From: Martin Koegler Date: Tue, 29 May 2007 21:08:35 +0200 Subject: [PATCH] diff-delta: use realloc instead of xrealloc Commit 83572c1a914d3f7a8dd66d954c11bbc665b7b923 changed many realloc to xrealloc. This change was made in diff-delta.c too, although the code can handle an out of memory failure. This patch reverts this change in diff-delta.c. Signed-off-by: Martin Koegler Signed-off-by: Junio C Hamano --- diff-delta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diff-delta.c b/diff-delta.c index 17757d2af..faf96e471 100644 --- a/diff-delta.c +++ b/diff-delta.c @@ -388,7 +388,7 @@ create_delta(const struct delta_index *index, outsize = max_size + MAX_OP_SIZE + 1; if (max_size && outpos > max_size) break; - out = xrealloc(out, outsize); + out = realloc(out, outsize); if (!out) { free(tmp); return NULL; -- 2.26.2