summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2022-06-03 15:13:24 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2022-06-03 15:13:24 +0200
commit5b960f8b3a1cb5216f76976298b036277815279b (patch)
tree7a4f2a5c782cc766b3a697a7de0f272cf66a7872 /lib
parentfc0e42912cca2ead51415a0cd32faaf14ebcee61 (diff)
Fix: libfstree: free() path string in error code path
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/fstree/sort_by_file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/fstree/sort_by_file.c b/lib/fstree/sort_by_file.c
index 7d3f5cc..7f1f19f 100644
--- a/lib/fstree/sort_by_file.c
+++ b/lib/fstree/sort_by_file.c
@@ -328,6 +328,7 @@ int fstree_sort_files(fstree_t *fs, istream_t *sortfile)
"reconstructing node path\n",
filename, line_num);
free(line);
+ free(path);
return -1;
}