Rename strbuf_cleanup to strbuf_free

It frees the whole object.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2021-02-16 17:15:11 +01:00
parent 425ac7a253
commit cfb1a0e555
5 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -35,5 +35,5 @@ struct strbuf_child_entry {
struct strbuf* strbuf_new(void);
ssize_t strbuf_add_string(struct strbuf *str, const char *s, size_t len);
void strbuf_complete(struct strbuf *str);
struct strbuf* strbuf_cleanup(struct strbuf *str);
DEFINE_TRIVIAL_CLEANUP_FUNC(struct strbuf*, strbuf_cleanup);
struct strbuf* strbuf_free(struct strbuf *str);
DEFINE_TRIVIAL_CLEANUP_FUNC(struct strbuf*, strbuf_free);