From 5a78814aebd71f295f4507f7129eb1ee7b979a07 Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Mon, 28 Jul 2008 00:25:46 -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 37adf66f65a..b5f64c9a53e 100644 --- a/fs/unionfs/lookup.c +++ b/fs/unionfs/lookup.c @@ -450,6 +450,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.34.1