mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
[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:
parent
9a0c8230e8
commit
914afcf55a
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user