diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-01-26 15:05:57 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-01-26 15:09:06 +0100 |
commit | 94e47710a66fbc0a1603f02fce0e91ad58db4b29 (patch) | |
tree | b995fe4d87e89e26a5c9438da936df0f72d39eac /lib/common/hardlink.c | |
parent | daa1409632c380f88150be29889714044a843dcc (diff) |
Fix memory leak in hard link detection code
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/common/hardlink.c')
-rw-r--r-- | lib/common/hardlink.c | 1 |
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"); |