Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
name-hash.c: drop hashmap_cmp_fn cast
[gitweb.git]
/
apply.c
diff --git
a/apply.c
b/apply.c
index f7251ccc8b42c789c1bed785d93cdeba4406480f..b963d7d8fb7ee81300d4383b7bc007fc74af84c5 100644
(file)
--- a/
apply.c
+++ b/
apply.c
@@
-3695,8
+3695,7
@@
static int check_preimage(struct apply_state *state,
is_new:
patch->is_new = 1;
patch->is_delete = 0;
- free(patch->old_name);
- patch->old_name = NULL;
+ FREE_AND_NULL(patch->old_name);
return 0;
}