mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
2558c15beb
Fixes talloc_free() with references when smbd exists and talloc_free the global dcesrv context: ERROR: talloc_free with references at ../../source3/rpc_server/rpc_config.c:73 reference at ../../source3/rpc_server/rpc_server.c:193 reference at ../../source3/rpc_server/rpc_server.c:592 ... The talloc_reference to make the dcerpc_ncacn_listen_state a parent of the dcesrv context is not necessary as the listen state is allocated under the endpoint, which is allocated under the dcesrv context: full talloc report on 'struct dcesrv_context' (total 12298 bytes in 188 blocks) ... struct dcesrv_endpoint contains 691 bytes in 11 blocks (ref 0) 0x55ae964d79a0 struct dcerpc_ncacn_listen_state contains 160 bytes in 2 blocks (ref 0) 0x55ae964fca60 struct tevent_fd contains 104 bytes in 1 blocks (ref 0) 0x55ae964f36f0 struct dcesrv_if_list contains 128 bytes in 2 blocks (ref 0) 0x55ae964e8a40 ../../librpc/rpc/dcesrv_core.c:360 contains 104 bytes in 1 blocks (ref 0) 0x55ae964e8ac0 struct dcesrv_if_list contains 128 bytes in 2 blocks (ref 0) 0x55ae964e8870 ../../librpc/rpc/dcesrv_core.c:327 contains 104 bytes in 1 blocks (ref 0) 0x55ae964e8970 struct dcerpc_binding contains 108 bytes in 2 blocks (ref 0) 0x55ae964e87a0 \pipe\lsass contains 12 bytes in 1 blocks (ref 0) 0x55ae964e88f0 struct dcerpc_binding contains 111 bytes in 2 blocks (ref 0) 0x55ae964e86d0 \pipe\netlogon contains 15 bytes in 1 blocks (ref 0) 0x55ae964e8650 ... struct dcesrv_endpoint contains 1728 bytes in 27 blocks (ref 0) 0x55ae964e0db0 struct dcerpc_ncacn_listen_state contains 160 bytes in 2 blocks (ref 0) 0x55ae964fd540 struct tevent_fd contains 104 bytes in 1 blocks (ref 0) 0x55ae964f3890 struct dcesrv_if_list contains 128 bytes in 2 blocks (ref 0) 0x55ae964fbd70 ../../librpc/rpc/dcesrv_core.c:360 contains 104 bytes in 1 blocks (ref 0) 0x55ae964f67a0 struct dcesrv_if_list contains 128 bytes in 2 blocks (ref 0) 0x55ae964fff60 ../../librpc/rpc/dcesrv_core.c:360 contains 104 bytes in 1 blocks (ref 0) 0x55ae964f66c0 struct dcesrv_if_list contains 128 bytes in 2 blocks (ref 0) 0x55ae964eb8b0 ../../librpc/rpc/dcesrv_core.c:360 contains 104 bytes in 1 blocks (ref 0) 0x55ae964eba00 struct dcesrv_if_list contains 128 bytes in 2 blocks (ref 0) 0x55ae964eb200 ../../librpc/rpc/dcesrv_core.c:360 contains 104 bytes in 1 blocks (ref 0) 0x55ae964eb350 struct dcesrv_if_list contains 128 bytes in 2 blocks (ref 0) 0x55ae964eab70 ../../librpc/rpc/dcesrv_core.c:360 contains 104 bytes in 1 blocks (ref 0) 0x55ae964eabf0 struct dcesrv_if_list contains 128 bytes in 2 blocks (ref 0) 0x55ae964ea360 ../../librpc/rpc/dcesrv_core.c:360 contains 104 bytes in 1 blocks (ref 0) 0x55ae964ea4b0 struct dcesrv_if_list contains 128 bytes in 2 blocks (ref 0) 0x55ae964e9cb0 ../../librpc/rpc/dcesrv_core.c:360 contains 104 bytes in 1 blocks (ref 0) 0x55ae964e9e00 struct dcesrv_if_list contains 128 bytes in 2 blocks (ref 0) 0x55ae964e96a0 ../../librpc/rpc/dcesrv_core.c:360 contains 104 bytes in 1 blocks (ref 0) 0x55ae964e97f0 struct dcesrv_if_list contains 128 bytes in 2 blocks (ref 0) 0x55ae964e8430 ../../librpc/rpc/dcesrv_core.c:360 contains 104 bytes in 1 blocks (ref 0) 0x55ae964e8580 struct dcesrv_if_list contains 128 bytes in 2 blocks (ref 0) 0x55ae964e6250 ../../librpc/rpc/dcesrv_core.c:360 contains 104 bytes in 1 blocks (ref 0) 0x55ae964e8070 struct dcesrv_if_list contains 128 bytes in 2 blocks (ref 0) 0x55ae964e7e50 ../../librpc/rpc/dcesrv_core.c:327 contains 104 bytes in 1 blocks (ref 0) 0x55ae964e7fa0 struct dcerpc_binding contains 104 bytes in 2 blocks (ref 0) 0x55ae964e7ed0 DEFAULT contains 8 bytes in 1 blocks (ref 0) 0x55ae964eaa10 .... Signed-off-by: Samuel Cabrero <scabrero@samba.org> Reviewed-by: Andrew Bartlet <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Wed Apr 1 10:28:43 UTC 2020 on sn-devel-184 |
||
---|---|---|
.. | ||
dfs | ||
dssetup | ||
echo | ||
epmapper | ||
eventlog | ||
fss | ||
initshutdown | ||
lsa | ||
mdssvc | ||
netlogon | ||
ntsvcs | ||
samr | ||
spoolss | ||
srvsvc | ||
svcctl | ||
winreg | ||
wkssvc | ||
epmd.c | ||
epmd.h | ||
fssd.c | ||
fssd.h | ||
lsasd.c | ||
lsasd.h | ||
mdssd.c | ||
mdssd.h | ||
rpc_config.c | ||
rpc_config.h | ||
rpc_contexts.c | ||
rpc_contexts.h | ||
rpc_ep_register.c | ||
rpc_ep_register.h | ||
rpc_handles.c | ||
rpc_modules.c | ||
rpc_modules.h | ||
rpc_ncacn_np.c | ||
rpc_ncacn_np.h | ||
rpc_pipes.h | ||
rpc_server.c | ||
rpc_server.h | ||
rpc_service_setup.c | ||
rpc_service_setup.h | ||
rpc_sock_helper.c | ||
rpc_sock_helper.h | ||
srv_access_check.c | ||
srv_access_check.h | ||
srv_pipe_hnd.c | ||
srv_pipe_hnd.h | ||
srv_pipe.c | ||
srv_pipe.h | ||
wscript_build |