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]
/
line-log.c
diff --git
a/line-log.c
b/line-log.c
index b9087814b8ccd0082efc41c617e33e8046ea17d5..79eded7363bce69c1d540a66ed3ba2d74310d50f 100644
(file)
--- a/
line-log.c
+++ b/
line-log.c
@@
-610,8
+610,7
@@
parse_lines(struct commit *commit, const char *prefix, struct string_list *args)
line_log_data_insert(&ranges, full_name, begin, end);
free_filespec(spec);
- free(ends);
- ends = NULL;
+ FREE_AND_NULL(ends);
}
for (p = ranges; p; p = p->next)