[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

View File

@ -207,8 +207,10 @@ dohash(char *out, char *in, char *key, int forw)
return; return;
ki = kmalloc(16*48, GFP_KERNEL); ki = kmalloc(16*48, GFP_KERNEL);
if(ki == NULL) if(ki == NULL) {
kfree(pk1);
return; return;
}
cd = pk1 + 56; cd = pk1 + 56;
pd1= cd + 56; pd1= cd + 56;