Skip to content

Commit

Permalink
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/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
  • Loading branch information
Linus Torvalds committed May 13, 2011
2 parents 9bbd055 + 1b0bcbc commit 446cc63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/9p/protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 446cc63

Please sign in to comment.