https://bugs.openldap.org/show_bug.cgi?id=10349

          Issue ID: 10349
           Summary: Free ch_calloc-allocated memory in error paths
           Product: OpenLDAP
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: needs_review
          Severity: normal
          Priority: ---
         Component: slapd
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 1078
  --> https://bugs.openldap.org/attachment.cgi?id=1078&action=edit
Free ch_calloc-allocated memory in error paths

1. In aa_operational, bv_allowed and bv_effective are allocated via ch_calloc.
If ja == 0 or je == 0, these memory objects are never freed and do not escape
the function, causing potential memory leak.

2. In memberof_db_init, the memory allocated by ch_calloc isn’t released on
error paths, leading to another potential leak.

-- 
You are receiving this mail because:
You are on the CC list for the issue.

Reply via email to