https://bugs.openldap.org/show_bug.cgi?id=10584
Issue ID: 10584 Summary: try_read1msg memory leak on Notice of Disconnection Product: OpenLDAP Version: 2.6.14 Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: libraries Assignee: bugs@openldap.org Reporter: ondra@mistotebe.net Target Milestone: ---
When a ber is moved off lc->lconn_ber, try_read1msg has to either free it or attach it to an LDAPMessage. When NoD is received (specifically the is_nod branch), neither of those happens and ber is leaked.
Only affects callers who call `ldap_result(ld, msgid > 0, ...)` (i.e. who do not expect to handle it themselves).
Fix is coming.