From 9474f277a7ed4f3536b721cea721b25b30183d02 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 22 Mar 2024 18:19:18 -0400 Subject: Remove unused pointer --- src/strlist.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src') diff --git a/src/strlist.c b/src/strlist.c index bcb71dd..c2250ee 100644 --- a/src/strlist.c +++ b/src/strlist.c @@ -69,7 +69,6 @@ int strlist_append_file(struct StrList *pStrList, char *_path, ReaderFn *readerF int retval = 0; char *path = NULL; char *filename = NULL; - char *from_file_tmpdir = NULL; char **data = NULL; if (readerFn == NULL) { @@ -104,10 +103,6 @@ int strlist_append_file(struct StrList *pStrList, char *_path, ReaderFn *readerF free(data); fatal: - if (from_file_tmpdir != NULL) { - rmtree(from_file_tmpdir); - guard_free(from_file_tmpdir); - } if (filename != NULL) { guard_free(filename); } -- cgit