Skip to content

Memory leak in whoami_s #80

@tiran

Description

@tiran

l_ldap_whoami_s leaks a BER data structure on every call.

==29355== 100 (48 direct, 52 indirect) bytes in 3 blocks are definitely lost in loss record 3,782 of 5,810
==29355==    at 0x4C2FB6B: malloc (vg_replace_malloc.c:299)
==29355==    by 0x14CBD9E4: ber_memalloc_x (memory.c:228)
==29355==    by 0x14CBA087: ber_get_stringal (decode.c:582)
==29355==    by 0x14CBAAFC: ber_scanf (decode.c:806)
==29355==    by 0x14A7C7BD: ldap_parse_extended_result (extended.c:270)
==29355==    by 0x14A83799: ldap_parse_whoami (whoami.c:48)
==29355==    by 0x14A83941: ldap_whoami_s (whoami.c:95)
==29355==    by 0x1485A738: l_ldap_whoami_s (LDAPObject.c:1224)
==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)

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy