cppcheck analysis of util-linux_2.17.2-7.1.dsc
- ./disk-utils/fsck.cramfs.c:561 [error] - Resource leak: fd
- ./disk-utils/fsck.minix.c:319 [error] - Resource leak: fd
- ./disk-utils/mkfs.bfs.c:285 [error] - Memory leak: volume
- ./disk-utils/mkfs.bfs.c:285 [error] - Memory leak: fsname
- ./disk-utils/mkfs.cramfs.c:525 [error] - Common realloc mistake: "entry_stack" nulled but not freed upon failure
- ./disk-utils/mkswap.c:456 [error] - Memory leak: type
- ./fdisk/fdisk.c:1385 [error] - Common realloc mistake: "ms" nulled but not freed upon failure
- ./fdisk/sfdisk.c:393 [error] - Memory leak: ss
- ./fdisk/sfdisk.c:1562 [error] - instance of "bsd_partition" object destroyed immediately
- ./fdisk/sfdisk.c:1573 [error] - instance of "bsd_partition" object destroyed immediately
- ./fsck/fsck.c:1345 [error] - Memory leak: fs
- ./login-utils/agetty.c:645 [error] - Allocation with open, if doesn't release it.
- ./login-utils/checktty.c:538 [error] - Memory leak: tc
- ./login-utils/chfn.c:353 [error] - Memory leak: gecos
- ./login-utils/setpwnam.c:139 [error] - Common realloc mistake: "linebuf" nulled but not freed upon failure
- ./login-utils/setpwnam.c:104 [error] - Memory leak: linebuf
- ./login-utils/shutdown.c:689 [error] - Common realloc mistake: "pids" nulled but not freed upon failure
- ./login-utils/shutdown.c:690 [error] - Resource leak: dp
- ./misc-utils/procs.c:80 [error] - Common realloc mistake: "pids" nulled but not freed upon failure
- ./mount/lomount.c:717 [error] - snprintf size is out of bounds
- ./mount/lomount.c:266 [error] - Resource leak: dir
- ./mount/mount.c:2122 [error] - Resource leak: fd
- ./partx/addpart.c:42 [error] - Resource leak: fd
- ./partx/delpart.c:42 [error] - Resource leak: fd
- ./partx/partx.c:214 [error] - Resource leak: fd
- ./shlibs/uuid/src/gen_uuid.c:214 [error] - Resource leak: fd
- ./sys-utils/lscpu.c:493 [error] - Resource leak: dp
- ./sys-utils/rdev.c:126 [error] - Resource leak: dp
- ./sys-utils/rtcwake.c:510 [error] - Memory leak: suspend
- ./sys-utils/switch_root.c:141 [error] - Resource leak: cfd
- ./sys-utils/tunelp.c:298 [error] - Memory leak: filename
- ./text-utils/column.c:250 [error] - Common realloc mistake: "cols" nulled but not freed upon failure
- ./text-utils/column.c:252 [error] - Common realloc mistake: "lens" nulled but not freed upon failure
- ./text-utils/column.c:307 [error] - Common realloc mistake: "list" nulled but not freed upon failure
- ./text-utils/column.c:277 [error] - Memory leak: lens
- ./text-utils/pg.c:614 [error] - Memory leak: buf
- ./text-utils/rev.c:111 [error] - Common realloc mistake: "p" nulled but not freed upon failure
- ./text-utils/ul.c:596 [error] - Common realloc mistake: "obuf" nulled but not freed upon failure
- ./text-utils/ul.c:178 [error] - Resource leak: f
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Sat, 29 Jan 2011 06:58:11 +0000, based on results by cppcheck 1.46