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>
This commit is contained in:
parent
bd724be4be
commit
b75c6c6de1
@ -388,7 +388,7 @@ create_delta(const struct delta_index *index,
|
|||||||
outsize = max_size + MAX_OP_SIZE + 1;
|
outsize = max_size + MAX_OP_SIZE + 1;
|
||||||
if (max_size && outpos > max_size)
|
if (max_size && outpos > max_size)
|
||||||
break;
|
break;
|
||||||
out = xrealloc(out, outsize);
|
out = realloc(out, outsize);
|
||||||
if (!out) {
|
if (!out) {
|
||||||
free(tmp);
|
free(tmp);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user