diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2023-12-10 01:06:18 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2023-12-10 01:06:18 -0500 |
commit | ebdcd4652d55097e56d2a66aebf382663d99089b (patch) | |
tree | aa687239313e4f731f9e5ced826601da07d38f16 /src | |
parent | c933a430a1728a2d9983be62342f51439a0cab8a (diff) | |
download | stasis-ebdcd4652d55097e56d2a66aebf382663d99089b.tar.gz |
guard_free() all pointers
Diffstat (limited to 'src')
-rw-r--r-- | src/strlist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/strlist.c b/src/strlist.c index 69f1a94..ac9fd82 100644 --- a/src/strlist.c +++ b/src/strlist.c @@ -105,13 +105,13 @@ int strlist_append_file(struct StrList *pStrList, char *_path, ReaderFn *readerF fatal: if (from_file_tmpdir != NULL) { rmtree(from_file_tmpdir); - free(from_file_tmpdir); + guard_free(from_file_tmpdir) } if (filename != NULL) { - free(filename); + guard_free(filename) } if (path != NULL) { - free(path); + guard_free(path) } return retval; |