From 4250d9bcfcf9dbc95418c64932ad39f71ff2019e Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sun, 10 Mar 2024 15:13:15 -0400 Subject: Use do/while in guard_* macros to make them behave more like functions --- src/strlist.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/strlist.c') diff --git a/src/strlist.c b/src/strlist.c index ac9fd82..5832802 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); - guard_free(from_file_tmpdir) + guard_free(from_file_tmpdir); } if (filename != NULL) { - guard_free(filename) + guard_free(filename); } if (path != NULL) { - guard_free(path) + guard_free(path); } return retval; -- cgit