diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-27 03:09:41 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-27 03:57:10 +0000 |
| commit | 4599df64cab89b72cf679d07d936151d61fb37a8 (patch) | |
| tree | 8e415b95073033ee0c5e2ade7aa206942fff0072 /util/libreboot-utils/lib/mkhtemp.c | |
| parent | 5d6344292a58aba54b321f6df2601630c26b62f9 (diff) | |
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.c | 4 |
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; } |
