diff --git a/fs/9p/v9fs.c b/fs/9p/v9fs.c
index 873802de21cd9a2539e8ffbc47ee0a8a0a28babb..756f7e9beb2e0a12cc1ad527992ca9fe6537c966 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: