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>
Martin Koegler committed
May 29, 2007 at 21:08 UTC
b75c6c6de1e8f801edb142b59e7809a166a63adc
1 file changed
+1
-1
diff-delta.c
+1
-1
@@ -388,7 +388,7 @@ create_delta(const struct delta_index *index,
388
outsize = max_size + MAX_OP_SIZE + 1;
389
if (max_size && outpos > max_size)
390
break;
391
- out = xrealloc(out, outsize);
391
+ out = realloc(out, outsize);
392
if (!out) {
393
free(tmp);
394
return NULL;