X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftal%2Ftal.h;h=42245f68660277c990561502f50b00f94297bcb5;hp=1ed15c75f46fd664b6f57b10c65bcd8eb9790406;hb=60b4ad5bf9ef295f89e834f3667e2aa8914b741a;hpb=bb480e553f9d204b85a2e42de0be42c7b80eebda diff --git a/ccan/tal/tal.h b/ccan/tal/tal.h index 1ed15c75..42245f68 100644 --- a/ccan/tal/tal.h +++ b/ccan/tal/tal.h @@ -53,14 +53,15 @@ typedef void tal_t; * @p: NULL, or tal allocated object to free. * * This calls the destructors for p (if any), then does the same for all its - * children (recursively) before finally freeing the memory. + * children (recursively) before finally freeing the memory. It returns + * NULL, for convenience. * * Note: errno is preserved by this call. * * Example: - * tal_free(p); + * p = tal_free(p); */ -void tal_free(const tal_t *p); +void *tal_free(const tal_t *p); /** * tal_arr - allocate an array of objects.