summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Koegler <mkoegler@auto.tuwien.ac.at>2007-05-29 21:08:35 +0200
committerJunio C Hamano <junkio@cox.net>2007-05-31 00:15:18 -0700
commitb75c6c6de1e8f801edb142b59e7809a166a63adc (patch)
treeeffec43cb335643d8869587ae893a2add37d7510
parentbd724be4bec4e75014e8e528a9c3c9a90b2d4488 (diff)
downloadgit-b75c6c6de1e8f801edb142b59e7809a166a63adc.tar.gz
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 <mkoegler@auto.tuwien.ac.at> Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r--diff-delta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff-delta.c b/diff-delta.c
index 17757d2af9..faf96e4713 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;