cppcheck analysis of postgresql-9.0_9.0.1-2.dsc
- ./contrib/hstore/hstore_gin.c:54 [error] - Possible null pointer dereference: entries
- ./contrib/pg_upgrade/check.c:537 [error] - Resource leak: script
- ./contrib/pg_upgrade/check.c:638 [error] - Resource leak: script
- ./contrib/pg_upgrade/file.c:305 [error] - Resource leak: dirdesc
- ./contrib/pg_upgrade/file.c:415 [error] - Resource leak: srcdir
- ./contrib/pg_upgrade/function.c:265 [error] - Resource leak: script
- ./contrib/pg_upgrade/server.c:158 [error] - Resource leak: version_fd
- ./contrib/pg_upgrade/version_old_8_3.c:107 [error] - Resource leak: script
- ./contrib/pg_upgrade/version_old_8_3.c:197 [error] - Resource leak: script
- ./contrib/pgbench/pgbench.c:1575 [error] - Common realloc mistake: "my_commands" nulled but not freed upon failure
- ./contrib/pgbench/pgbench.c:1641 [error] - Common realloc mistake: "my_commands" nulled but not freed upon failure
- ./contrib/pgbench/pgbench.c:1965 [error] - Common realloc mistake: "state" nulled but not freed upon failure
- ./contrib/pgbench/pgbench.c:694 [error] - Resource leak: fp
- ./src/backend/bootstrap/bootparse.c:1086 [error] - Memory leak: yyptr
- ./src/backend/optimizer/geqo/geqo_main.c:212 [error] - Uninitialized variable: kid
- ./src/backend/utils/adt/geo_ops.c:987 [error] - Uninitialized variable: result
- ./src/backend/utils/adt/geo_ops.c:988 [error] - Uninitialized variable: result
- ./src/backend/utils/adt/geo_ops.c:989 [error] - Uninitialized variable: result
- ./src/backend/utils/adt/geo_ops.c:1001 [error] - Uninitialized variable: result
- ./src/backend/utils/adt/geo_ops.c:1002 [error] - Uninitialized variable: result
- ./src/backend/utils/adt/geo_ops.c:1003 [error] - Uninitialized variable: result
- ./src/backend/utils/adt/geo_ops.c:994 [error] - Uninitialized variable: result
- ./src/backend/utils/adt/geo_ops.c:1008 [error] - Uninitialized variable: result
- ./src/bin/pg_dump/pg_backup_archiver.c:3362 [error] - Memory leak: slots
- ./src/bin/pg_dump/pg_backup_archiver.c:3943 [error] - Memory leak: lockids
- ./src/bin/pg_dump/pg_dumpall.c:1479 [error] - Memory leak: mine
- ./src/bin/pg_resetxlog/pg_resetxlog.c:457 [error] - Memory leak: buffer
- ./src/bin/psql/command.c:975 [error] - Common realloc mistake: "newval" nulled but not freed upon failure
- ./src/interfaces/ecpg/ecpglib/misc.c:117 [error] - Memory leak: sqlca
- ./src/interfaces/ecpg/ecpglib/misc.c:266 [error] - Memory leak: sqlca
- ./src/interfaces/ecpg/preproc/pgc.c:4828 [error] - Common realloc mistake: "literalbuf" nulled but not freed upon failure
- ./src/interfaces/ecpg/preproc/pgc.c:4843 [error] - Common realloc mistake: "literalbuf" nulled but not freed upon failure
- ./src/interfaces/ecpg/preproc/preproc.c:24818 [error] - Memory leak: yyptr
- ./src/interfaces/ecpg/test/expected/compat_informix-dec_test.c:86 [error] - Common realloc mistake: "decarr" nulled but not freed upon failure
- ./src/interfaces/ecpg/test/expected/compat_informix-dec_test.c:147 [error] - Common realloc mistake: "decarr" nulled but not freed upon failure
- ./src/interfaces/ecpg/test/expected/pgtypeslib-num_test2.c:75 [error] - Common realloc mistake: "numarr" nulled but not freed upon failure
- ./src/pl/plpgsql/src/pl_gram.c:1542 [error] - Memory leak: yyptr
- ./src/port/exec.c:361 [error] - Resource leak: pgver
- ./src/port/win32env.c:120 [error] - Memory leak: envcpy
- ./src/tools/entab/entab.c:223 [error] - Resource leak: in_file
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Tue, 21 Dec 2010 08:58:12 +0000, based on results by cppcheck 1.46