Skip to content

Memory leaks in ldap_create_assertion_control_value #79

Closed
@tiran

Description

@tiran

The function ldap_create_assertion_control_value leaks a BER data structure and a LDAP* structure.

==29355== 14 bytes in 1 blocks are definitely lost in loss record 15 of 5,810
==29355==    at 0x4C2FB6B: malloc (vg_replace_malloc.c:299)
==29355==    by 0x14CBD9E4: ber_memalloc_x (memory.c:228)
==29355==    by 0x14CBC89D: ber_flatten2 (io.c:407)
==29355==    by 0x14AA026F: ldap_create_assertion_control_value (assertion.c:58)
==29355==    by 0x1485C427: encode_assertion_control (ldapcontrol.c:351)
==29355==    by 0x4FC21AE: _PyCFunction_FastCallDict (in /usr/lib64/libpython3.6m.so.1.0)
==29355==    by 0x4FC9279: ??? (in /usr/lib64/libpython3.6m.so.1.0)
==29355==    by 0x4FF2EC9: _PyEval_EvalFrameDefault (in /usr/lib64/libpython3.6m.so.1.0)
==29355==    by 0x4F8BBE9: ??? (in /usr/lib64/libpython3.6m.so.1.0)
==29355==    by 0x4FC933D: ??? (in /usr/lib64/libpython3.6m.so.1.0)
==29355==    by 0x4FF2EC9: _PyEval_EvalFrameDefault (in /usr/lib64/libpython3.6m.so.1.0)
==29355==    by 0x4F8BBE9: ??? (in /usr/lib64/libpython3.6m.so.1.0)
==29355== 33,691 (40 direct, 33,651 indirect) bytes in 1 blocks are definitely lost in loss record 5,807 of 5,810
==29355==    at 0x4C31A1E: calloc (vg_replace_malloc.c:711)
==29355==    by 0x14CBDA54: ber_memcalloc_x (memory.c:283)
==29355==    by 0x14A77010: ldap_create (open.c:115)
==29355==    by 0x1485C40D: encode_assertion_control (ldapcontrol.c:347)
==29355==    by 0x4FC21AE: _PyCFunction_FastCallDict (in /usr/lib64/libpython3.6m.so.1.0)
==29355==    by 0x4FC9279: ??? (in /usr/lib64/libpython3.6m.so.1.0)
==29355==    by 0x4FF2EC9: _PyEval_EvalFrameDefault (in /usr/lib64/libpython3.6m.so.1.0)
==29355==    by 0x4F8BBE9: ??? (in /usr/lib64/libpython3.6m.so.1.0)
==29355==    by 0x4FC933D: ??? (in /usr/lib64/libpython3.6m.so.1.0)
==29355==    by 0x4FF2EC9: _PyEval_EvalFrameDefault (in /usr/lib64/libpython3.6m.so.1.0)
==29355==    by 0x4F8BBE9: ??? (in /usr/lib64/libpython3.6m.so.1.0)
==29355==    by 0x4FC933D: ??? (in /usr/lib64/libpython3.6m.so.1.0)

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