Skip to content

memory leaks #73

@stsp

Description

@stsp

My program uses libfluidsynth.
When running with leak sanitizer,
I am getting the hundreds of leaks,
like this one:

    #0 0x7fd43ec13f17 in __interceptor_calloc ../../../../src/libsanitizer/lsan/lsan_interceptors.cpp:90
    #1 0x7fd4389b47e9 in g_malloc0 (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x647e9) (BuildId: 200be351efe83301ebaffb390ac30b652a88bac1)
    #2 0x7fd3f0506c42 in g_type_create_instance (/lib/x86_64-linux-gnu/libgobject-2.0.so.0+0x3ec42) (BuildId: 19ac1d7eb43d5180610b48be4eec8d1c0f810943)
    #3 0x7fd3f04e9c0f in g_param_spec_internal (/lib/x86_64-linux-gnu/libgobject-2.0.so.0+0x21c0f) (BuildId: 19ac1d7eb43d5180610b48be4eec8d1c0f810943)
    #4 0x7fd3f04ea44b in g_param_spec_string (/lib/x86_64-linux-gnu/libgobject-2.0.so.0+0x2244b) (BuildId: 19ac1d7eb43d5180610b48be4eec8d1c0f810943)
    #5 0x7fd3f059f35d in _ipatch_type_prop_init (/lib/x86_64-linux-gnu/libinstpatch-1.0.so.2+0x7635d) (BuildId: df45cec54b7221f1938b3e00e29a6513421cac1a)
    #6 0x7fd3f05aa565 in ipatch_init (/lib/x86_64-linux-gnu/libinstpatch-1.0.so.2+0x81565) (BuildId: df45cec54b7221f1938b3e00e29a6513421cac1a)
    #7 0x7fd3fc2a5add in new_fluid_synth (/lib/x86_64-linux-gnu/libfluidsynth.so.3+0x3aadd) (BuildId: d2972109e904cc09b8bfebb083e8fcc561e41a91)

My program does delete_fluid_synth(synth);
and with gdb I made sure that ipatch_close()
is called from it. This seems to be not helping.

libfluidsynth3: 2.3.3-2.1
libinstpatch: 1.1.6-1

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