aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2023-12-10 01:06:18 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2023-12-10 01:06:18 -0500
commitebdcd4652d55097e56d2a66aebf382663d99089b (patch)
treeaa687239313e4f731f9e5ced826601da07d38f16
parentc933a430a1728a2d9983be62342f51439a0cab8a (diff)
downloadstasis-ebdcd4652d55097e56d2a66aebf382663d99089b.tar.gz
guard_free() all pointers
-rw-r--r--src/strlist.c6
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;