From 94e47710a66fbc0a1603f02fce0e91ad58db4b29 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 26 Jan 2020 15:05:57 +0100 Subject: Fix memory leak in hard link detection code Signed-off-by: David Oberhollenzer --- lib/common/hardlink.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/common') 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"); -- cgit v1.2.3