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.
https://bugs.openldap.org/show_bug.cgi?id=9214
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.4.50
https://bugs.openldap.org/show_bug.cgi?id=9214
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |TEST Status|UNCONFIRMED |RESOLVED
https://bugs.openldap.org/show_bug.cgi?id=9214
--- Comment #1 from Quanah Gibson-Mount quanah@openldap.org --- Commits: • a5e17673 by grapvar at 2020-04-15T00:14:37+01:00 ITS#9214 slapd-mdb: plug cursor leak in dnSuperiorMatch filter
https://bugs.openldap.org/show_bug.cgi?id=9214
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- RE24:
Commits: • c8b5c691 by grapvar at 2020-04-15T00:10:52+00:00 ITS#9214 slapd-mdb: plug cursor leak in dnSuperiorMatch filter
https://bugs.openldap.org/show_bug.cgi?id=9214
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|TEST |FIXED
https://bugs.openldap.org/show_bug.cgi?id=9214
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED