fs/9p, net/9p: memory leak fixes

Four memory leak fixes in the 9P code.

Signed-off-by: Latchesar Ionkov <[email protected]>
Signed-off-by: Eric Van Hensbergen <[email protected]>
This commit is contained in:
Latchesar Ionkov 2010-08-24 18:13:59 +00:00 • committed by Eric Van Hensbergen
commit 62b2be591a
2 changed files with 8 additions and 1 deletions

View file

@ -1128,6 +1128,7 @@ v9fs_vfs_getattr(struct vfsmount *mnt, struct dentry *dentry,
v9fs_stat2inode(st, dentry->d_inode, dentry->d_inode->i_sb);
generic_fillattr(dentry->d_inode, stat);
p9stat_free(st);
kfree(st);
return 0;
}
@ -1489,6 +1490,7 @@ static int v9fs_readlink(struct dentry *dentry, char *buffer, int buflen)
retval = strnlen(buffer, buflen);
done:
p9stat_free(st);
kfree(st);
return retval;
}