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]
/
diff-lib.c
diff --git
a/diff-lib.c
b/diff-lib.c
index 76c8f185cd032b92e010b95e4d92e3b08a6ab18a..7528f4163f87f10628405e6e82e9facac7e0fc35 100644
(file)
--- a/
diff-lib.c
+++ b/
diff-lib.c
@@
-179,8
+179,7
@@
int run_diff_files(struct rev_info *revs, unsigned int option)
free(dpath);
continue;
}
- free(dpath);
- dpath = NULL;
+ FREE_AND_NULL(dpath);
/*
* Show the diff for the 'ce' if we found the one