• Jesper Juhl's avatar
    UDF: Close small mem leak in udf_find_entry() · a4264b3f
    Jesper Juhl authored
    Hi,
    
    There's a small memory leak in fs/udf/namei.c::udf_find_entry().
    
    We dynamically allocate memory for 'fname' with kmalloc() and in most
    situations we free it before we leave the function, but there is one
    situation where we do not (but should). This patch closes the leak by
    jumping to the 'out_ok' label which does the correct cleanup rather than
    doing half the cleanup and returning directly.
    Signed-off-by: default avatarJesper Juhl <jj@chaosbits.net>
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    a4264b3f
namei.c 33.8 KB