diff options
author | Steve French <sfrench@us.ibm.com> | 2007-02-02 09:42:12 -0500 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2007-02-02 09:42:12 -0500 |
commit | 914afcf55ae2621a3c5930e8c458d4ae8636c469 (patch) | |
tree | 1df2bec949ef45719c6c9b0339e2835b6ee4ea43 /fs/cifs | |
parent | 9a0c8230e84898ed27f790408805e33fa482b2f9 (diff) |
[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>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/smbdes.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/cifs/smbdes.c b/fs/cifs/smbdes.c index 1a4a395c9376..1b1daf63f062 100644 --- a/fs/cifs/smbdes.c +++ b/fs/cifs/smbdes.c | |||
@@ -207,8 +207,10 @@ dohash(char *out, char *in, char *key, int forw) | |||
207 | return; | 207 | return; |
208 | 208 | ||
209 | ki = kmalloc(16*48, GFP_KERNEL); | 209 | ki = kmalloc(16*48, GFP_KERNEL); |
210 | if(ki == NULL) | 210 | if(ki == NULL) { |
211 | kfree(pk1); | ||
211 | return; | 212 | return; |
213 | } | ||
212 | 214 | ||
213 | cd = pk1 + 56; | 215 | cd = pk1 + 56; |
214 | pd1= cd + 56; | 216 | pd1= cd + 56; |