From: Alexander Strakh Date: Tue, 1 Sep 2009 17:02:24 +0000 (+0000) Subject: [CIFS] Memory leak in ntlmv2 hash calculation X-Git-Tag: v2.6.32-rc1~701^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b3859bc9e20d764316346665fc93ecea2d2b176;p=pandora-kernel.git [CIFS] Memory leak in ntlmv2 hash calculation in function calc_ntlmv2_hash memory is not released. 1. If in the line 333 we successfully allocate memory and assign it to pctxt variable: pctxt = kmalloc(sizeof(struct HMACMD5Context), GFP_KERNEL); then we go to line 376 and exit wihout releasing memory pointed to by pctxt variable. Add a memory releasing for pctxt variable before exit from function calc_ntlmv2_hash. Signed-off-by: Alexander Strakh Signed-off-by: Steve French --- Reading git-diff-tree failed