Hello. I've made a simple add and delete callbacks to talloc system. Idea is simple: talloc_set_callback_fn(ctx, add, del); https://github.com/andrew-aladev/samba-talloc-debug/commits/master