commit b87b4170d4b402d61585cf4d458c0b58ab49095f from: Stefan Sperling date: Mon Jan 06 14:10:36 2020 UTC rename to parsed_tree_entries_free for clarity (don't use with got_tree_object) commit - b64b1f953a75e1e6639a1fd16a0dc4ce19f4ae78 commit + b87b4170d4b402d61585cf4d458c0b58ab49095f blob - 9a940e36521468e7c66573584ffde982297779af blob + e6c2ea90c0cac74af79c20f41c29a82e60f55b42 --- lib/got_lib_object_parse.h +++ lib/got_lib_object_parse.h @@ -34,7 +34,7 @@ struct got_parsed_tree_entry { }; const struct got_error *got_object_parse_tree(struct got_pathlist_head *, int *, uint8_t *, size_t); -void got_object_tree_entries_free(struct got_pathlist_head *); +void got_object_parsed_tree_entries_free(struct got_pathlist_head *); const struct got_error *got_object_parse_tag(struct got_tag_object **, uint8_t *, size_t); blob - 3449f6bd20453520e2864886ff300184b537f3df blob + b13f1011f3dfd2ab3e4c7cd0746c6969d926402a --- lib/object_parse.c +++ lib/object_parse.c @@ -719,14 +719,14 @@ got_object_parse_tree(struct got_pathlist_head *entrie } done: if (err) { - got_object_tree_entries_free(entries); + got_object_parsed_tree_entries_free(entries); *nentries = 0; } return err; } void -got_object_tree_entries_free(struct got_pathlist_head *entries) +got_object_parsed_tree_entries_free(struct got_pathlist_head *entries) { struct got_pathlist_entry *pe; blob - 9e71e26859bb960f740d7b367d0e7d1a51095c76 blob + 72b14bc04cbff71ec15b9bc157c38742415aa509 --- libexec/got-read-pack/got-read-pack.c +++ libexec/got-read-pack/got-read-pack.c @@ -203,7 +203,7 @@ tree_request(struct imsg *imsg, struct imsgbuf *ibuf, err = got_privsep_send_tree(ibuf, &entries, nentries); done: - got_object_tree_entries_free(&entries); + got_object_parsed_tree_entries_free(&entries); free(buf); got_object_close(obj); if (err) { blob - 36075902cd0313335fba82e43693eaed162f57af blob + 13b651a6e7c1ebbe64b1825d23365d427bd53992 --- libexec/got-read-tree/got-read-tree.c +++ libexec/got-read-tree/got-read-tree.c @@ -143,7 +143,7 @@ main(int argc, char *argv[]) err = got_privsep_send_tree(&ibuf, &entries, nentries); done: - got_object_tree_entries_free(&entries); + got_object_parsed_tree_entries_free(&entries); free(buf); if (f) { if (fclose(f) != 0 && err == NULL)