From c2a70b7de0e15dc80d5b56d438a6d4ed47647b44 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 29 Mar 2026 09:10:57 +0100 Subject: libreboot-utils: simplify random tmpdir namegen generalise it in rand.c because this logic will be useful for other programs in the future. Signed-off-by: Leah Rowe --- util/libreboot-utils/lottery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/libreboot-utils/lottery.c') diff --git a/util/libreboot-utils/lottery.c b/util/libreboot-utils/lottery.c index 87637123..48565c87 100644 --- a/util/libreboot-utils/lottery.c +++ b/util/libreboot-utils/lottery.c @@ -33,7 +33,7 @@ main(int argc, char **argv) if (argc < 2) /* no spew */ spew_hex(buf, BUFSIZ); - free(buf); + free_and_set_null(&buf); fprintf(stderr, "\n%s\n", same ? "You win!" : "You lose!"); return same ^ 1; -- cgit v1.2.1