From: Rusty Russell Date: Mon, 9 Jan 2023 02:20:22 +0000 (+1030) Subject: objset: avoid memleak report in example. X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=fd8e571f5dfa09db184ed6e5557ac735278aefbd;p=ccan objset: avoid memleak report in example. Signed-off-by: Rusty Russell --- diff --git a/ccan/objset/_info b/ccan/objset/_info index 967764e7..116c2596 100644 --- a/ccan/objset/_info +++ b/ccan/objset/_info @@ -39,6 +39,8 @@ * printf("%i,", i); * printf("\n"); * } + * // Keep -fsanitize=address leak detection happy. + * objset_clear(&args); * return 0; * } * // Given "a b c" outputs No arguments start with -.