cppcheck analysis of samba4_4.0.0~alpha14~bzr13684.dfsg1-1.dsc
- ./lib/popt/popt.c:601 [error] - Common realloc mistake: "t" nulled but not freed upon failure
- ./lib/popt/popt.c:612 [error] - Common realloc mistake: "t" nulled but not freed upon failure
- ./lib/replace/test/os2_delete.c:108 [error] - Resource leak: d
- ./lib/replace/test/testsuite.c:82 [error] - Resource leak: fd
- ./lib/replace/test/testsuite.c:166 [error] - Memory leak: x
- ./lib/replace/test/testsuite.c:260 [error] - Memory leak: x
- ./lib/replace/test/testsuite.c:953 [error] - Resource leak: fd
- ./lib/replace/test/testsuite.c:1014 [error] - Resource leak: fd
- ./lib/util/become_daemon.c:46 [error] - Resource leak: fd
- ./lib/util/talloc_stack.c:157 [error] - Memory leak: ts
- ./lib/util/talloc_stack.c:184 [error] - instance of "talloc_stackframe" object destroyed immediately
- ./lib/zlib/contrib/minizip/unzip.c:522 [error] - Possible null pointer dereference: s - otherwise it is redundant to check if s is null at line 523
- ./lib/zlib/contrib/minizip/unzip.c:1091 [error] - Possible null pointer dereference: pfile_in_zip_read_info - otherwise it is redundant to check if pfile_in_zip_read_info is null at line 1093
- ./lib/zlib/examples/gun.c:393 [error] - Uninitialized variable: next
- ./lib/zlib/gzio.c:147 [error] - Memory leak: s.path
- ./nsswitch/libwbclient/wbclient.c:186 [error] - Memory leak: result
- ./nsswitch/nsstest.c:321 [error] - Possible null pointer dereference: pwd - otherwise it is redundant to check if pwd is null at line 322
- ./nsswitch/nsstest.c:350 [error] - Possible null pointer dereference: grp - otherwise it is redundant to check if grp is null at line 351
- ./source4/dsdb/samdb/ldb_modules/extended_dn_out.c:799 [error] - Possible null pointer dereference: dereference_control - otherwise it is redundant to check if dereference_control is null at line 801
- ./source4/heimdal/lib/asn1/asn1_gen.c:147 [error] - Memory leak: fnout
- ./source4/heimdal/lib/asn1/asn1parse.c:1668 [error] - Memory leak: yyptr
- ./source4/heimdal/lib/asn1/gen.c:246 [error] - Memory leak: fn
- ./source4/heimdal/lib/asn1/gen_template.c:417 [error] - Memory leak: q
- ./source4/heimdal/lib/asn1/gen_template.c:666 [error] - Memory leak: elname
- ./source4/heimdal/lib/asn1/main.c:158 [error] - Common realloc mistake: "arg" nulled but not freed upon failure
- ./source4/heimdal/lib/com_err/parse.c:1452 [error] - Common realloc mistake: "prefix" nulled but not freed upon failure
- ./source4/heimdal/lib/com_err/parse.c:1277 [error] - Memory leak: yyptr
- ./source4/heimdal/lib/gssapi/mech/gss_krb5.c:402 [error] - Memory leak: ctx
- ./source4/heimdal/lib/hx509/name.c:232 [error] - Memory leak: oidname
- ./source4/heimdal/lib/hx509/name.c:332 [error] - Uninitialized variable: len
- ./source4/heimdal/lib/hx509/name.c:339 [error] - Uninitialized variable: len
- ./source4/heimdal/lib/hx509/name.c:342 [error] - Uninitialized variable: len
- ./source4/heimdal/lib/hx509/name.c:345 [error] - Uninitialized variable: len
- ./source4/heimdal/lib/hx509/sel-gram.c:1265 [error] - Memory leak: yyptr
- ./source4/heimdal/lib/krb5/crypto.c:2269 [error] - Uninitialized variable: k1_c_data
- ./source4/heimdal/lib/krb5/crypto.c:2337 [error] - Uninitialized variable: k1_c_data
- ./source4/heimdal/lib/krb5/get_cred.c:1449 [error] - Memory leak: out
- ./source4/heimdal/lib/krb5/init_creds_pw.c:1215 [error] - Memory leak: paid
- ./source4/heimdal/lib/krb5/pkinit.c:1212 [error] - Memory leak: ptr
- ./source4/heimdal/lib/krb5/set_default_realm.c:86 [error] - Memory leak: realms
- ./source4/heimdal/lib/krb5/v4_glue.c:160 [error] - Memory leak: path
- ./source4/heimdal/lib/krb5/v4_glue.c:308 [error] - Memory leak: path
- ./source4/lib/ldb/tools/ldbedit.c:342 [error] - Possible null pointer dereference: result - otherwise it is redundant to check if result is null at line 344
- ./source4/lib/policy/gp_filesys.c:230 [error] - Resource leak: fh_local
- ./source4/lib/policy/gp_filesys.c:559 [error] - Resource leak: fd
- ./source4/lib/registry/dir.c:81 [error] - Resource leak: d
- ./source4/lib/registry/dir.c:401 [error] - Resource leak: d
- ./source4/lib/registry/hive.c:64 [error] - Resource leak: fd
- ./source4/ntvfs/ipc/ipc_rap.c:289 [error] - instance of "rap_heap_save" object destroyed immediately
- ./source4/ntvfs/ipc/ipc_rap.c:371 [error] - instance of "rap_heap_save" object destroyed immediately
- ./source4/ntvfs/posix/pvfs_sys.c:300 [error] - Resource leak: fd
- ./source4/smb_server/smb/reply.c:817 [error] - Uninitialized variable: req
- ./source4/smb_server/smb/search.c:85 [error] - Uninitialized variable: req
- ./source4/smb_server/smb/search.c:100 [error] - Uninitialized variable: req
Note: this report is incomplete, which means that an error ocurred
while checking this package and not all of the code was analysed.
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:18:30 +0000, based on results by cppcheck 1.46