MCPcopy Index your code
hub / github.com/git/git / free_note_data

Function free_note_data

builtin/notes.c:127–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125};
126
127static 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
142static int list_each_note(const struct object_id *object_oid,
143 const struct object_id *note_oid,

Callers 2

addFunction · 0.85
append_editFunction · 0.85

Calls 2

unlink_or_warnFunction · 0.85
strbuf_releaseFunction · 0.85

Tested by

no test coverage detected