From: Erez Zadok Date: Mon, 28 Jul 2008 03:23:49 +0000 (-0400) Subject: Unionfs: free lower paths array when destroying dentry's private data X-Git-Tag: unionfs-2.4~7 X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=50fb8ff378eb086f3903922adb60bd4cc1877a49;p=unionfs-2.6.18.y.git Unionfs: free lower paths array when destroying dentry's private data CC: Hugh Dickins Signed-off-by: Erez Zadok --- diff --git a/fs/unionfs/lookup.c b/fs/unionfs/lookup.c index 82ebdcfa14b..d60d6f4954e 100644 --- a/fs/unionfs/lookup.c +++ b/fs/unionfs/lookup.c @@ -460,6 +460,8 @@ void free_dentry_private_data(struct dentry *dentry) { if (!dentry || !dentry->d_fsdata) return; + kfree(UNIONFS_D(dentry)->lower_paths); + UNIONFS_D(dentry)->lower_paths = NULL; kmem_cache_free(unionfs_dentry_cachep, dentry->d_fsdata); dentry->d_fsdata = NULL; }