summaryrefslogtreecommitdiff
path: root/fs/9p/v9fs.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2007-10-23 13:48:50 -0500
committerEric Van Hensbergen <ericvh@gmail.com>2007-10-23 13:48:50 -0500
commit0a976297e1f57a6d156d3f8ed7f10c64beb031a4 (patch)
treec81facdce9d3ce427efdb026294111919aa03f57 /fs/9p/v9fs.c
parentb530cc794024be227876a089e66fb17b7b512763 (diff)
downloadlwn-0a976297e1f57a6d156d3f8ed7f10c64beb031a4.tar.gz
lwn-0a976297e1f57a6d156d3f8ed7f10c64beb031a4.zip
9p: fix memleak in fs/9p/v9fs.c
This patch fixes a memory leak introduced by commit ba17674fe02909fef049fd4b620a2805bdb8c693. Spotted by the Coverity checker. Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p/v9fs.c')
-rw-r--r--fs/9p/v9fs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/9p/v9fs.c b/fs/9p/v9fs.c
index 873802de21cd..756f7e9beb2e 100644
--- a/fs/9p/v9fs.c
+++ b/fs/9p/v9fs.c
@@ -162,6 +162,7 @@ static void v9fs_parse_options(struct v9fs_session_info *v9ses)
if (*e != '\0')
v9ses->uid = ~0;
}
+ kfree(s);
break;
default: