From ebdcd4652d55097e56d2a66aebf382663d99089b Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sun, 10 Dec 2023 01:06:18 -0500 Subject: guard_free() all pointers --- src/strlist.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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; -- cgit