summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/lib/mkhtemp.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-27 03:09:41 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-27 03:44:12 +0000
commit0923fcedd26b0031cc90af89bd762c94d0dbcccc (patch)
tree81ecb67f61d576b04628014f14cfe835a4317522 /util/libreboot-utils/lib/mkhtemp.c
parent5d6344292a58aba54b321f6df2601630c26b62f9 (diff)
util/libreboot-utils: finish implementing hell
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/lib/mkhtemp.c')
-rw-r--r--util/libreboot-utils/lib/mkhtemp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/libreboot-utils/lib/mkhtemp.c b/util/libreboot-utils/lib/mkhtemp.c
index 0e0169e4..c913ce6c 100644
--- a/util/libreboot-utils/lib/mkhtemp.c
+++ b/util/libreboot-utils/lib/mkhtemp.c
@@ -184,7 +184,7 @@ err:
else
saved_errno = errno = EIO;
- free_if_null(&dest);
+ free_and_set_null(&dest);
close_no_err(&dirfd);
close_no_err(fd);
@@ -619,7 +619,7 @@ err:
close_no_err(fd);
success:
- free_if_null(&fname_copy);
+ free_and_set_null(&fname_copy);
return (*fd >= 0) ? *fd : -1;
}