After a quick look at that code, the only occurrence of entry_free() in do_search() occurs after collecting either the rootDSE or the subschemaSubentry; I don't see much room for errors in that code, unless SLAPI mucks with the contents of the entry. p. -- Pierangelo Masarati mailto:pierangelo.masarati@sys-net.it SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497