提交 914afcf5 编写于 作者: S Steve French

[CIFS] Missing free in error path

Thanks to jra for pointing this out
Signed-off-by: NJeremy Allison <jra@samba.org>
Signed-off-by: NSteve French <sfrench@us.ibm.com>
上级 9a0c8230
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册