From: Eric Biggers Date: Wed, 22 May 2013 04:47:18 +0000 (-0500) Subject: read_dentry_tree(): Do not leak duplicate dentries X-Git-Tag: v1.4.1~37 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=0bfcb6ff6c9b07acb5ea16a22b5e24eb36b3609b read_dentry_tree(): Do not leak duplicate dentries --- diff --git a/src/dentry.c b/src/dentry.c index 50317193..86a82eb6 100644 --- a/src/dentry.c +++ b/src/dentry.c @@ -1970,6 +1970,7 @@ read_dentry_tree(const u8 metadata_resource[], u64 metadata_resource_len, "at that path with the exact same name)", child_type, dentry_full_path(duplicate), duplicate_type); + free_dentry(child); } else { inode_add_dentry(child, child->d_inode); /* If there are children of this child, call this