lkml.org 
[lkml]   [2010]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/4] omfs: fix memory leak
    Date
    From: Davidlohr Bueso <dave.bueso@gmail.com>

    In the error path of omfs_fill_super(), the FS super block info
    (sbi) is not being freed. Correct this.

    Signed-off-by: Davidlohr Bueso <dave@gnu.org>
    Signed-off-by: Bob Copeland <me@bobcopeland.com>
    ---
    fs/omfs/inode.c | 2 ++
    1 files changed, 2 insertions(+), 0 deletions(-)

    diff --git a/fs/omfs/inode.c b/fs/omfs/inode.c
    index 089839a..b5d6380 100644
    --- a/fs/omfs/inode.c
    +++ b/fs/omfs/inode.c
    @@ -529,6 +529,8 @@ out_brelse_bh2:
    out_brelse_bh:
    brelse(bh);
    end:
    + if (ret)
    + kfree(sbi);
    return ret;
    }

    --
    1.5.6.5



    \
     
     \ /
      Last update: 2010-07-15 05:31    [W:0.020 / U:31.564 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site