Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=914afcf55ae2621a3c5930e8c458d4ae8636c469
Commit:     914afcf55ae2621a3c5930e8c458d4ae8636c469
Parent:     9a0c8230e84898ed27f790408805e33fa482b2f9
Author:     Steve French <[EMAIL PROTECTED]>
AuthorDate: Fri Feb 2 14:42:12 2007 +0000
Committer:  Steve French <[EMAIL PROTECTED]>
CommitDate: Fri Feb 2 14:42:12 2007 +0000

    [CIFS] Missing free in error path
    
    Thanks to jra for pointing this out
    
    Signed-off-by: Jeremy Allison <[EMAIL PROTECTED]>
    Signed-off-by: Steve French <[EMAIL PROTECTED]>
---
 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 1a4a395..1b1daf6 100644
--- a/fs/cifs/smbdes.c
+++ b/fs/cifs/smbdes.c
@@ -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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to