From: Al Viro Date: Thu, 2 Apr 2015 16:02:03 +0000 (-0400) Subject: 9p: we are leaking glock.client_id in v9fs_file_getlock() X-Git-Tag: KARO-TXA5-2015-06-26~105^2~22^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=571f10802421cb56883e7c47c6479e976954f7d4;p=karo-tx-linux.git 9p: we are leaking glock.client_id in v9fs_file_getlock() Signed-off-by: Al Viro --- diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c index 0ac2969c9c2e..55cc9c80e187 100644 --- a/fs/9p/vfs_file.c +++ b/fs/9p/vfs_file.c @@ -37,6 +37,7 @@ #include #include #include +#include #include #include @@ -286,6 +287,7 @@ static int v9fs_file_getlock(struct file *filp, struct file_lock *fl) fl->fl_end = glock.start + glock.length - 1; fl->fl_pid = glock.proc_id; } + kfree(glock.client_id); return res; }