Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
config.c: drop hashmap_cmp_fn cast
[gitweb.git]
/
sequencer.c
diff --git
a/sequencer.c
b/sequencer.c
index 224afe79b96c89a70a36db85aa6c61826b2ebec1..98cdfe74fdac47da5ca2f640ae8ae2dbaa6051d4 100644
(file)
--- a/
sequencer.c
+++ b/
sequencer.c
@@
-1212,8
+1212,7
@@
struct todo_list {
static void todo_list_release(struct todo_list *todo_list)
{
strbuf_release(&todo_list->buf);
- free(todo_list->items);
- todo_list->items = NULL;
+ FREE_AND_NULL(todo_list->items);
todo_list->nr = todo_list->alloc = 0;
}