Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 914afcf5 authored by Steve French's avatar Steve French
Browse files

[CIFS] Missing free in error path



Thanks to jra for pointing this out

Signed-off-by: default avatarJeremy Allison <jra@samba.org>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 9a0c8230
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;