Home
last modified time | relevance | path

Searched hist:e183de0d3efccd77b4a7b9d1395a9f29bba68e26 (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/fs/zfs/
H A Dzfs.ce183de0d3efccd77b4a7b9d1395a9f29bba68e26 Fri Nov 07 01:08:35 UTC 2014 Jorgen Lundman <lundman@lundman.net> ZFS: Clean up cppcheck warnings where relevant, leaked memory etc

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: Jorgen Lundman <lundman@lundman.net>