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:44:12 +0000 |
| commit | 0923fcedd26b0031cc90af89bd762c94d0dbcccc (patch) | |
| tree | 81ecb67f61d576b04628014f14cfe835a4317522 /util/libreboot-utils/lib/state.c | |
| parent | 5d6344292a58aba54b321f6df2601630c26b62f9 (diff) | |
util/libreboot-utils: finish implementing hell
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/lib/state.c')
| -rw-r--r-- | util/libreboot-utils/lib/state.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/libreboot-utils/lib/state.c b/util/libreboot-utils/lib/state.c index 42d060b7..41c851fb 100644 --- a/util/libreboot-utils/lib/state.c +++ b/util/libreboot-utils/lib/state.c @@ -139,7 +139,7 @@ xstart(int argc, char *argv[]) if (us.f.tmpbase == NULL) err_no_cleanup(0, errno, "strdup tmpbase"); - free_if_null(&tmpdir); + free_and_set_null(&tmpdir); if (us.f.tname == NULL) err_no_cleanup(0, errno, "x->f.tname null"); @@ -219,8 +219,8 @@ exit_cleanup(void) close_err = 1; close_no_err(&f->dirfd); - free_if_null(&f->base); - free_if_null(&f->tmpbase); + free_and_set_null(&f->base); + free_and_set_null(&f->tmpbase); } if (saved_errno) |
