I have no idea why these resolve_contexts gets attached to the long-living lp_ctx object, it doesn't make any sense to me. So I fixed the bug for me by reattaching the object to the parent ocnnection context so that it doesn't live on forever. This fixed the memleak at least for me.
** Patch added: "Move resolve_context to connection context on dcerpc pipes" https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2121024/+attachment/5910600/+files/fix-dcerpc-connect-memleak.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2121024 Title: Memory leak in Samba when DRS replication fails To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/2121024/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
