Skip to content

Commit

Permalink
diff-delta: use realloc instead of xrealloc
Browse files Browse the repository at this point in the history
Commit 83572c1 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 <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
Martin Koegler authored and Junio C Hamano committed May 31, 2007
1 parent bd724be commit b75c6c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diff-delta.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b75c6c6

Please sign in to comment.