summaryrefslogtreecommitdiff
path: root/lib/common
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-01-26 15:05:57 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-01-26 15:09:06 +0100
commit94e47710a66fbc0a1603f02fce0e91ad58db4b29 (patch)
treeb995fe4d87e89e26a5c9438da936df0f72d39eac /lib/common
parentdaa1409632c380f88150be29889714044a843dcc (diff)
Fix memory leak in hard link detection code
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/common')
-rw-r--r--lib/common/hardlink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/common/hardlink.c b/lib/common/hardlink.c
index c1fca8a..ac01938 100644
--- a/lib/common/hardlink.c
+++ b/lib/common/hardlink.c
@@ -89,6 +89,7 @@ int sqfs_tree_find_hard_links(const sqfs_tree_node_t *root,
}
*out = hardlinks;
+ free(list);
return 0;
fail:
perror("detecting hard links in file system tree");