https://bugs.openldap.org/show_bug.cgi?id=9999
Issue ID: 9999 Summary: Potential memory leak in tests/progs/slapd-search.c Product: OpenLDAP Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: test suite Assignee: bugs@openldap.org Reporter: 1061499390@qq.com Target Milestone: ---
Version: Github:master Potential memory leak in slapd-search.c line 207.Calling ldap_search_ext_s() without calling ldap_msgfree() to free the memory will cause a memory leak. Doc says "Note that res parameter of ldap_search_ext_s() and ldap_search_s() should be freed with ldap_msgfree() regardless of return value of these functions." in https://www.openldap.org/software/man.cgi?query=ldap_search_ext_s&apropo...
https://bugs.openldap.org/show_bug.cgi?id=9999
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|--- |Lowest Severity|normal |trivial
--- 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=9999
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |IN_PROGRESS Ever confirmed|0 |1
--- Comment #2 from Howard Chu hyc@openldap.org --- https://git.openldap.org/openldap/openldap/-/merge_requests/601
https://bugs.openldap.org/show_bug.cgi?id=9999
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs_review | Target Milestone|--- |2.5.15
https://bugs.openldap.org/show_bug.cgi?id=9999
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |FIXED
--- Comment #3 from Quanah Gibson-Mount quanah@openldap.org --- head:
• 5e15ce57 by Howard Chu at 2023-02-17T15:52:35+00:00 ITS#9999 slapd-search: plug potential leak
RE26:
• 48ce1b21 by Howard Chu at 2023-04-26T17:31:24+00:00 ITS#9999 slapd-search: plug potential leak
RE25:
• 85c109af by Howard Chu at 2023-04-26T17:31:34+00:00 ITS#9999 slapd-search: plug potential leak
https://bugs.openldap.org/show_bug.cgi?id=9999
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED