r2671: we're getting too many errors caused by the talloc_realloc() API not
authorAndrew Tridgell <tridge@samba.org>
Mon, 27 Sep 2004 01:36:19 +0000 (01:36 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:59:20 +0000 (12:59 -0500)
commit5b44130afad1bb1764d986de3ef0e8e04b0e7357
treeafea820fdfd1021b5ee55b2fa37ba1b32d334e46
parentf095a8e748a87de9f4cde117df13e8dccd8aeaa9
r2671: we're getting too many errors caused by the talloc_realloc() API not
taking a context (so when you pass a NULL pointer you end up with
memory in a top level context). Fixed it by changing the API to take a
context. The context is only used if the pointer you are reallocing is
NULL.
(This used to be commit 8dc23821c9f54b2f13049b5e608a0cafb81aa540)
30 files changed:
source4/include/talloc.h
source4/lib/charcnv.c
source4/lib/registry/common/reg_interface.c
source4/lib/registry/reg_backend_rpc/reg_backend_rpc.c
source4/lib/socket/socket_ipv4.c
source4/lib/talloc.c
source4/lib/util_str.c
source4/libcli/auth/spnego_parse.c
source4/libcli/clilist.c
source4/libcli/ldap/ldap.c
source4/libcli/ldap/ldap_ldif.c
source4/libcli/raw/raweas.c
source4/libcli/raw/rawfileinfo.c
source4/libcli/raw/rawrequest.c
source4/libcli/util/asn1.c
source4/librpc/ndr/ndr.c
source4/librpc/rpc/dcerpc.c
source4/librpc/rpc/dcerpc_smb.c
source4/librpc/rpc/dcerpc_tcp.c
source4/ntvfs/ipc/ipc_rap.c
source4/ntvfs/ntvfs_base.c
source4/ntvfs/posix/pvfs_dirlist.c
source4/ntvfs/simple/svfs.h
source4/ntvfs/simple/svfs_util.c
source4/rpc_server/dcerpc_server.c
source4/rpc_server/epmapper/rpc_epmapper.c
source4/smb_server/request.c
source4/smb_server/trans2.c
source4/torture/rap/rap.c
source4/torture/raw/search.c