Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
coccinelle: make use of the "type" FREE_AND_NULL() rule
[gitweb.git]
/
apply.c
diff --git
a/apply.c
b/apply.c
index 854faa67795bcd356b33420f46260f208c2ec047..e78de0affa92beb8408304d4fe90684891017766 100644
(file)
--- a/
apply.c
+++ b/
apply.c
@@
-3705,8
+3705,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;
}