Skip to content

Commit

Permalink
[CIFS] Missing free in error path
Browse files Browse the repository at this point in the history
Thanks to jra for pointing this out

Signed-off-by: Jeremy Allison <jra@samba.org>
Signed-off-by: Steve French <sfrench@us.ibm.com>
  • Loading branch information
Steve French committed Feb 2, 2007
1 parent 9a0c823 commit 914afcf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/cifs/smbdes.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,10 @@ dohash(char *out, char *in, char *key, int forw)
return;

ki = kmalloc(16*48, GFP_KERNEL);
if(ki == NULL)
if(ki == NULL) {
kfree(pk1);
return;
}

cd = pk1 + 56;
pd1= cd + 56;
Expand Down

0 comments on commit 914afcf

Please sign in to comment.