| 125 | }; |
| 126 | |
| 127 | static void free_note_data(struct note_data *d) |
| 128 | { |
| 129 | if (d->edit_path) { |
| 130 | unlink_or_warn(d->edit_path); |
| 131 | free(d->edit_path); |
| 132 | } |
| 133 | strbuf_release(&d->buf); |
| 134 | |
| 135 | while (d->msg_nr--) { |
| 136 | strbuf_release(&d->messages[d->msg_nr]->buf); |
| 137 | free(d->messages[d->msg_nr]); |
| 138 | } |
| 139 | free(d->messages); |
| 140 | } |
| 141 | |
| 142 | static int list_each_note(const struct object_id *object_oid, |
| 143 | const struct object_id *note_oid, |
no test coverage detected