ldb: make the 'spy' code more paranoid
authorAndrew Tridgell <tridge@samba.org>
Thu, 1 Sep 2011 04:28:10 +0000 (14:28 +1000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 1 Sep 2011 06:54:23 +0000 (08:54 +0200)
commitccaab14ac423025d1c3188c429832533f19479f1
treedf4501e21853d10ff4f18d06562f8f4ce988a011
parent8d9665d5d15954cd36d1c385384520ce15ab4857
ldb: make the 'spy' code more paranoid

the spy code in ldb_tdb was added a while ago to overcome a memory
hierarchy problem with async ldb errors. Recently we started to get
valgrind errors related to the order of free in the spy code. This
patch ensures that we don't try to use a freed spy pointer. This
prevents the valgrind errors, although I suspect that the memory
hierarchy we have here is more complex than it needs to be

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Sep  1 08:54:23 CEST 2011 on sn-devel-104
lib/ldb/ldb_tdb/ldb_tdb.c
lib/ldb/ldb_tdb/ldb_tdb.h