[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:
Родитель
9a0c8230e8
Коммит
914afcf55a
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче