tdb_fetch(TDB_CONTEXT, TALLOC_CTX, const char *) ?

Jeremy Allison jra at
Sat Jun 4 17:56:39 GMT 2005

On Sat, Jun 04, 2005 at 07:34:49PM +0200, Volker Lendecke wrote:
> In Samba3 we've had a ton of memory leaks due to people not being aware that
> tdb_fetch allocates memory. I'm as guilty as everyone else, right now I'm
> fixing another one. Does anything speak against tdb_fetch taking a TALLOC_CTX
> except that then tdb depends on talloc?

Can you cachegrind it to see the effect on speed ?


More information about the samba-technical mailing list