summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/lottery.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-29 09:10:57 +0100
committerLeah Rowe <leah@libreboot.org>2026-03-29 09:18:36 +0100
commitc2a70b7de0e15dc80d5b56d438a6d4ed47647b44 (patch)
tree5c5281bb789f0ea9ab1d8766f5cea6e7182d431b /util/libreboot-utils/lottery.c
parent45edcf33f7d4b2f405c0f59fccc71b6ac15f5c65 (diff)
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 <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/lottery.c')
-rw-r--r--util/libreboot-utils/lottery.c2
1 files changed, 1 insertions, 1 deletions
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;