fixed several places that unnecessarily take a reference to the event context
authorAndrew Tridgell <tridge@samba.org>
Fri, 7 Aug 2009 07:14:13 +0000 (17:14 +1000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 7 Aug 2009 07:24:48 +0000 (17:24 +1000)
commite2d4ae15107c8613707adc68ffc68c6ced04e9be
treec782a84ad529555f2b635f4032605dbb1b84393c
parent238bf25af44ecc51bef59f1d0b9303da9904432e
fixed several places that unnecessarily take a reference to the event context

These references were triggering the ambiguous talloc_free errors from
the recent talloc changes when the server is run using the 'standard'
process model instead of the 'single' process model. I am aiming to
move the build farm to use the 'standard' process model soon, as part
of an effort to make our test environment better match the real
deployment of Samba4.

The references are not needed as the way that the event context is
used is as the 'top parent', so when the event context is freed then
all of the structures that were taking a reference to the event
context were actually freed as well, thus making the references
redundent.
source4/dsdb/samdb/ldb_modules/samldb.c
source4/lib/messaging/messaging.c
source4/libcli/composite/composite.c
source4/libcli/dgram/dgramsocket.c
source4/libcli/raw/clisocket.c
source4/libcli/smb_composite/connect.c
source4/libcli/wrepl/winsrepl.c
source4/librpc/rpc/dcerpc.c
source4/nbt_server/wins/winswack.c