From fd8e571f5dfa09db184ed6e5557ac735278aefbd Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 9 Jan 2023 12:50:22 +1030 Subject: [PATCH] objset: avoid memleak report in example. Signed-off-by: Rusty Russell --- ccan/objset/_info | 2 ++ 1 file changed, 2 insertions(+) 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 -. -- 2.39.2