summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-05-13 01:00:09 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2011-05-13 01:00:09 (GMT)
commit446cc6345d3de6571bdd0840f48aca441488a28d (patch)
treed955f58d6895088dad9a45efcc78302d1d51511a
parent9bbd055808248a7adc78161472d3301285252361 (diff)
parent1b0bcbcf62884959fa7214eb16c44cff445691c6 (diff)
downloadlinux-446cc6345d3de6571bdd0840f48aca441488a28d.tar.xz
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs: net/9p/protocol.c: Fix a memory leak
-rw-r--r--net/9p/protocol.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/9p/protocol.c b/net/9p/protocol.c
index b58a501..a873277 100644
--- a/net/9p/protocol.c
+++ b/net/9p/protocol.c
@@ -674,6 +674,7 @@ int p9dirent_read(char *buf, int len, struct p9_dirent *dirent,
}
strcpy(dirent->d_name, nameptr);
+ kfree(nameptr);
out:
return fake_pdu.offset;