cppcheck analysis of samba4_4.0.0~alpha8+git20090912-1.dsc
- ./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:954 [error] - Resource leak: fd
- ./lib/replace/test/testsuite.c:1015 [error] - Resource leak: fd
- ./lib/tdb/tools/tdbtorture.c:285 [possible error] - Memory leak: pids
- ./lib/util/become_daemon.c:59 [error] - Resource leak: fd
- ./lib/zlib/examples/gzappend.c:458 [possible error] - Resource leak: fd
- ./source4/client/client.c:870 [error] - Memory leak: quest
- ./source4/client/client.c:3276 [error] - Memory leak: base_directory
- ./source4/client/client.c:3276 [error] - Memory leak: desthost
- ./source4/dsdb/samdb/ldb_modules/extended_dn_out.c:248 [error] - Possible null pointer dereference: ares - otherwise it is redundant to check if ares is null at line 254
- ./source4/heimdal/kuser/kinit.c:445 [possible error] - Resource leak: f
- ./source4/heimdal/lib/asn1/asn1_gen.c:147 [error] - Memory leak: fnout
- ./source4/heimdal/lib/asn1/gen.c:185 [error] - Memory leak: fn
- ./source4/heimdal/lib/gssapi/krb5/cfx.c:202 [possible error] - Memory leak: tmp
- ./source4/heimdal/lib/gssapi/mech/gss_krb5.c:403 [error] - Memory leak: ctx
- ./source4/heimdal/lib/hcrypto/bn.c:147 [possible error] - Memory leak: hi
- ./source4/heimdal/lib/hx509/ks_file.c:483 [error] - Mismatching allocation and deallocation: f
- ./source4/heimdal/lib/hx509/ks_p12.c:442 [possible error] - Memory leak: p12
- ./source4/heimdal/lib/krb5/crypto.c:2174 [error] - Uninitialized variable: k1_c_data
- ./source4/heimdal/lib/krb5/crypto.c:2238 [error] - Uninitialized variable: k1_c_data
- ./source4/lib/ldb/ldb_tdb/ldb_index.c:274 [error] - Uninitialized variable: ret
- ./source4/lib/registry/dir.c:80 [error] - Resource leak: d
- ./source4/lib/registry/dir.c:372 [error] - Resource leak: d
- ./source4/lib/registry/hive.c:64 [error] - Resource leak: fd
- ./source4/ntvfs/posix/pvfs_lock.c:95 [error] - Possible null pointer dereference: pending - otherwise it is redundant to check if pending is null at line 172
- ./source4/ntvfs/posix/pvfs_lock.c:96 [error] - Possible null pointer dereference: pending - otherwise it is redundant to check if pending is null at line 172
- ./source4/ntvfs/posix/pvfs_lock.c:97 [error] - Possible null pointer dereference: pending - otherwise it is redundant to check if pending is null at line 172
- ./source4/ntvfs/posix/pvfs_lock.c:98 [error] - Possible null pointer dereference: pending - otherwise it is redundant to check if pending is null at line 172
- ./source4/rpc_server/netlogon/dcerpc_netlogon.c:1169 [error] - Memory leak: temp_str
- ./source4/torture/basic/misc.c:83 [possible error] - Memory leak: fname
- ./source4/torture/raw/open.c:1368 [error] - Buffer access out-of-bounds
- ./source4/torture/raw/open.c:1368 [error] - Uninitialized variable: buf2
- ./source4/torture/raw/setfileinfo.c:58 [possible error] - Memory leak: fnum_fname
- ./source4/torture/raw/setfileinfo.c:442 [error] - Memory leak: fnum_fname_new
- ./source4/torture/raw/setfileinfo.c:58 [possible error] - Memory leak: path_fname
- ./source4/torture/raw/setfileinfo.c:442 [possible error] - Memory leak: path_fname_new
- ./source4/torture/raw/setfileinfo.c:476 [error] - Memory leak: fnum_fname
- ./source4/torture/raw/setfileinfo.c:476 [error] - Memory leak: fnum_fname_new
- ./source4/torture/raw/setfileinfo.c:476 [possible error] - Memory leak: path_fname
- ./source4/torture/raw/setfileinfo.c:476 [possible error] - Memory leak: path_fname_new
- ./source4/torture/raw/setfileinfo.c:476 [error] - Memory leak: path_dname
- ./source4/torture/raw/setfileinfo.c:476 [possible error] - Memory leak: path_dname_new
- ./source4/torture/smbiconv.c:212 [possible error] - Resource leak: out
- ./source4/utils/ntlm_auth.c:1174 [error] - Memory leak: user
- ./source4/winbind/idmap.c:620 [error] - Uninitialized variable: trans
- ./testprogs/win32/npecho/npecho_client.c:21 [possible error] - Memory leak: outbuffer
- ./testprogs/win32/npecho/npecho_client2.c:116 [possible error] - Memory leak: outbuffer
- ./testprogs/win32/npecho/npecho_server2.c:75 [possible error] - Memory leak: outbuffer
- ./tests/fcntl_lock_thread.c:56 [error] - Resource leak: fd
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Thu, 16 Dec 2010 06:02:01 +0000, based on results by cppcheck 1.41-modif