change: add and call authorsfree()
Dependencies
- [2]
5D2IYPL7change: introduce changestore, print deleted lines - [3]
YDQLW2ZOchange: rework printing of patches - print Edit and Newvertex types - [4]
XTVLIC24change: refactor to print_change() - [*]
Q7TKZCJPAdd initial support for reading the offsets from a (fixed) change - [*]
JVU3TTT5all: switch away from typedefing anonymous structs - [*]
LCEKN25Gchange: parse authors
Change contents
- edit in change.h at line 54[7.1859][8.284]
void authorsfree(struct authors *); - edit in change.c at line 921
struct changeentry *e; - replacement in change.c at line 925
e = &s->entries[i];c = &e->change;c = &s->entries[i].change; - edit in change.c at line 934
authorsfree(struct authors *authors){size_t i, j;struct author *author;for (i = 0; i < authors->len; i++) {author = &authors->map[i];for (j = 0; j < author->len; j++) {free(author->entries[j].key);free(author->entries[j].value);}free(author->entries);}free(authors->map);}void - edit in change.c at line 953
free(h->header.message);if (h->header.description)free(h->header.description);free(h->header.timestamp);authorsfree(&h->header.authors);