Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
*.[ch] refactoring: make use of the FREE_AND_NULL() macro
[gitweb.git]
/
line-log.c
diff --git
a/line-log.c
b/line-log.c
index 79eded7363bce69c1d540a66ed3ba2d74310d50f..2d60c347ca6a3be17f84336c95b11a6b3cd7de3c 100644
(file)
--- a/
line-log.c
+++ b/
line-log.c
@@
-34,9
+34,8
@@
void range_set_init(struct range_set *rs, size_t prealloc)
void range_set_release(struct range_set *rs)
{
-
free
(rs->ranges);
+
FREE_AND_NULL
(rs->ranges);
rs->alloc = rs->nr = 0;
- rs->ranges = NULL;
}
/* dst must be uninitialized! */