diff options
author | Steve French <sfrench@us.ibm.com> | 2007-09-16 19:12:47 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2007-09-16 19:12:47 -0400 |
commit | 5a07cdf86c1485b570789fb660c8ada7c2635b23 (patch) | |
tree | dff7e4481c0866b7feae969d14c03ee61eddc494 /fs/ecryptfs/netlink.c | |
parent | a23d30698190f05491a6096f027311f94d4d26d5 (diff) |
[CIFS] fix small memory leak in an error path in new posix mkdir
There is a small memory leak in fs/cifs/inode.c::cifs_mkdir().
Storage for 'pInfo' is allocated with kzalloc(), but if the call
to CIFSPOSIXCreate(...) happens to return 0 and pInfo->Type == -1,
then we'll jump to the 'mkdir_get_info' label without freeing the
storage allocated for 'pInfo'.
This patch adds a kfree() call to free the storage just before
jumping to the label, thus getting rid of the leak.
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/ecryptfs/netlink.c')
0 files changed, 0 insertions, 0 deletions