[CIFS] Missing free in error path

Thanks to jra for pointing this out

Signed-off-by: Jeremy Allison <jra@samba.org>
Signed-off-by: Steve French <sfrench@us.ibm.com>
This commit is contained in:
Steve French 2007-02-02 14:42:12 +00:00
parent 9a0c8230e8
commit 914afcf55a
1 changed files with 3 additions and 1 deletions

View File

@ -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;