Skip to content

Mem leak in ucstr.c file of openldap #5

@daraamer

Description

@daraamer

There is a mem leak at at least 3 points in ucstr.c file inside struct berval * UTF8bvnormalize() function. Following are the positions:

if ( out == NULL ) {
return NULL
}

However, we have already allocated memory to "newbv" field earlier. There are three places where this is being done.
The memory for "newbv" field should have been freed before returning to the caller in case of failure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions