https://bugs.openldap.org/show_bug.cgi?id=9214
Bug ID: 9214 Summary: back-mdb: memory leak in dnSuperiorMatch search filter Product: OpenLDAP Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: --- Component: backends Assignee: bugs@openldap.org Reporter: grapvar@gmail.com Target Milestone: ---
Created attachment 709 --> https://bugs.openldap.org/attachment.cgi?id=709&action=edit Fix for cursor leak
This is a MDB backend issue. Each time when a dnSuperiorMatch rule of a search filter matches DN that exists in the DIT, the matching operation leaks one MDB cursor.
Leak happens in servers/slapd/back-mdb/dn2id.c`mdb_dn2sups(). Leak exists since MDB backend inception, i.e. commit
2011-09-01 0ba4206 Import back-mdb
Fix attached.