cppcheck analysis of gnu-fdisk_1.2.4-3.dsc
- ./src/common.c:787 [error] - Memory leak: disk_type_name
- ./src/common.c:887 [error] - Memory leak: fs_type_name
- ./src/common.c:928 [error] - Memory leak: flag_name
- ./src/common.c:1799 [error] - Memory leak: name
- ./src/hacks.c:379 [error] - Resource leak: fd
- ./src/strlist.c:380 [error] - Common realloc mistake: "str" nulled but not freed upon failure
- ./src/strlist.c:135 [error] - Common realloc mistake: "result" nulled but not freed upon failure
- ./src/strlist.c:182 [error] - Common realloc mistake: "result" nulled but not freed upon failure
- ./src/ui.c:412 [error] - Memory leak: prompt
- ./tests/check_common.c:56 [error] - Possible null pointer dereference: disk - otherwise it is redundant to check if disk is null at line 58
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Mon, 20 Dec 2010 21:14:26 +0000, based on results by cppcheck 1.46