• Jorgen Lundman's avatar
    ZFS: Clean up cppcheck warnings where relevant, leaked memory etc · e183de0d
    Jorgen Lundman authored
    In a message from Wolfgang Denk highlighting warnings from cppcheck,
    the patch will address those that are correctly diagnosed. Some are
    false-positives:
    
    > [fs/zfs/zfs.c:937]: (error) Memory leak: l
    dmu_read() allocates "l" if successful, so error-case should not free
    it.
    > [fs/zfs/zfs.c:1141]: (error) Memory leak: dnbuf
    dmu_read() allocates "dnbuf" if successful, so error-case should not
    free it.
    > [fs/zfs/zfs.c:1372]: (error) Memory leak: osp
    zio_read() allocates "osp" if successful, so error-case should
    not free it.
    > [fs/zfs/zfs.c:1726]: (error) Memory leak: nvlist
    int_zfs_fetch_nvlist() allocates "nvlist" if successful, so error-case
    should not free it.
    Signed-off-by: default avatarJorgen Lundman <lundman@lundman.net>
    e183de0d
Name
Last commit
Last update
..
cbfs Loading commit data...
cramfs Loading commit data...
ext4 Loading commit data...
fat Loading commit data...
jffs2 Loading commit data...
reiserfs Loading commit data...
sandbox Loading commit data...
ubifs Loading commit data...
yaffs2 Loading commit data...
zfs Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
fs.c Loading commit data...