https://bugs.openldap.org/show_bug.cgi?id=10004
Issue ID: 10004 Summary: Potential memory leak in libraries/librewrite/ldapmap.c Product: OpenLDAP Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: libraries Assignee: bugs@openldap.org Reporter: 1061499390@qq.com Target Milestone: ---
Version: Github:master Potential memory leak in ldapmap.c line 310, 321.Calling ldap_initialize() without calling ldap_unbind_ext() to free the memory will cause a memory leak. There is no ldap_unbind_ext before calling ldap_initialize in line 376, and the ld will be allocated again.
https://bugs.openldap.org/show_bug.cgi?id=10004
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |IN_PROGRESS
--- Comment #1 from Howard Chu hyc@openldap.org --- https://git.openldap.org/openldap/openldap/-/merge_requests/601
https://bugs.openldap.org/show_bug.cgi?id=10004
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.5.15 Keywords|needs_review |
https://bugs.openldap.org/show_bug.cgi?id=10004
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|IN_PROGRESS |RESOLVED
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- head:
• 12ff3a90 by Howard Chu at 2023-02-17T15:52:35+00:00 ITS#10004: librewrite: plug potential ld leak in ldapmap
RE26:
• 0e0bd886 by Howard Chu at 2023-04-26T17:32:59+00:00 ITS#10004: librewrite: plug potential ld leak in ldapmap
RE25:
• b180a1e2 by Howard Chu at 2023-04-26T17:33:14+00:00 ITS#10004: librewrite: plug potential ld leak in ldapmap
https://bugs.openldap.org/show_bug.cgi?id=10004
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED