Fix more valgrind issues.
authorAndrew Bartlett <abartlet@samba.org>
Sat, 29 Mar 2008 02:32:15 +0000 (13:32 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 29 Mar 2008 02:32:15 +0000 (13:32 +1100)
commit1c1c6fca660c304630672e87c20819daf8e008fc
tree5c8e323ce94d7dbba93570c344f97716ab5e788a
parente0c90d613121432700ea44011fda51e623de996c
Fix more valgrind issues.

This passes down the timeout more consistantly, and ensures that no
matter how the modules screw up, we don't free() the memory we are
going to write into the ASN1 packet until we actually write it out.

Andrew Bartlett
(This used to be commit eefd46289b90967ce6b4cd385fb1f7e1d6f9b343)
source4/dsdb/samdb/ldb_modules/linked_attributes.c
source4/dsdb/samdb/ldb_modules/subtree_rename.c
source4/ldap_server/ldap_backend.c
source4/ldap_server/ldap_server.c