summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-19 08:28:38 +0200
committerPaul Buetow <paul@buetow.org>2026-03-19 08:28:38 +0200
commitb7a9aa7200cb8e935f57a772ea8487687980f787 (patch)
tree35ac01a5574d28aa261e016430c89e8e332549c1
parent5fe321935bc76d35c521e3e750ab65858efb36ed (diff)
fix: free cache_file getline buffer (task 473)
-rw-r--r--ioriot/src/utils/futils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ioriot/src/utils/futils.c b/ioriot/src/utils/futils.c
index 366756a..5cbe4e1 100644
--- a/ioriot/src/utils/futils.c
+++ b/ioriot/src/utils/futils.c
@@ -255,6 +255,7 @@ void cache_file(const char *file)
while ((read = getline(&line, &len, fd)) != -1);
fclose(fd);
+ free(line);
}
void drop_caches(void)