From 056ce29da8e688392dd434c1f4bf35548ce4c9e8 Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Mon, 28 Jul 2008 02:15:43 -0400 Subject: [PATCH] Unionfs: free lower paths array when destroying dentry's private data CC: Hugh Dickins Signed-off-by: Erez Zadok --- fs/unionfs/lookup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/unionfs/lookup.c b/fs/unionfs/lookup.c index 4af79fec0d4..4bde3b60767 100644 --- a/fs/unionfs/lookup.c +++ b/fs/unionfs/lookup.c @@ -463,6 +463,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; } -- 2.43.0