diff: avoid redundantly clearing a flag
[gitweb.git] / sequencer.c
index 224afe79b96c89a70a36db85aa6c61826b2ebec1..98cdfe74fdac47da5ca2f640ae8ae2dbaa6051d4 100644 (file)
@@ -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;
 }