]> git.ozlabs.org Git - ccan/commitdiff
objset: avoid memleak report in example.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 9 Jan 2023 02:20:22 +0000 (12:50 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 16 Mar 2023 23:22:47 +0000 (09:52 +1030)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/objset/_info

index 967764e7e86cb9de97c622e9b297e74071b85907..116c2596ee622308cabc0f2268b9f74346321fa5 100644 (file)
@@ -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 -.