Skip to content

btrfs-progs: fix problems reported by cppcheck

Kenji Okimoto linux-btrfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3btrfs-progs: plug a memory leak reported by cppcheckdisk-io.c+8 -20 replies
2/3btrfs-progs: check malloc() resultdisk-io.c+3 -00 replies
3/3btrfs-progs: plug memory leaks in btrfs_scan_one_dir() reported by cppcheck.utils.c+3 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] btrfs-progs: fix problems reported by cppcheck

I fixed some problems reported by cppcheck:

[disk-io.c:462]: (error) Memory leak: log_root
[utils.c:983]: (error) Memory leak: fullpath

Patch set based on:
git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git#master

commit 91d9eec1ff044394f2b98ee7fcb76713dd33b994
Author: Chris Mason <[email protected]>
Date: Thu Oct 4 20:35:31 2012 -0400

Kenji Okimoto (3):
btrfs-progs: plug a memory leak reported by cppcheck
btrfs-progs: check malloc() result
btrfs-progs: plug memory leaks in btrfs_scan_one_dir() reported by
cppcheck.

 disk-io.c |   13 +++++++++++--
 utils.c   |    3 +++
 2 files changed, 14 insertions(+), 2 deletions(-)
Signature · 1 line
1.7.10.4