Skip to content
Snippets Groups Projects
Commit 949a1d32 authored by Alexandre Janniaux's avatar Alexandre Janniaux Committed by Steve Lhomme
Browse files

codec: vpx_alpha: fix memory leak on format

The es_format_t instances are copying allocations like languages that
were not released for the internal decoders and the input format.

Leaks information:

    STACK OF 1 INSTANCE OF 'ROOT LEAK: <malloc in es_format_Copy>':
    22  libsystem_pthread.dylib               0x185e89d34 thread_start + 8
    21  libsystem_pthread.dylib               0x185e8ef94 _pthread_start + 136
    20  libvlccore.9.dylib                    0x10302c1e4 Run + 72  input.c:418
    19  libvlccore.9.dylib                    0x10302e2d4 Init + 4620  input.c:1354
    18  libvlccore.9.dylib                    0x103032704 es_out_PrivControl + 68  es_out.h:133
    17  libvlccore.9.dylib                    0x10302a1f4 PrivControl + 864  es_out_timeshift.c:828
    16  libvlccore.9.dylib                    0x10302aec0 CmdExecutePrivControl + 216  es_out_timeshift.c:1903
    15  libvlccore.9.dylib                    0x10302af10 es_out_in_PrivControl + 60  es_out_timeshift.c:489
    14  libvlccore.9.dylib                    0x1030212a0 EsOutPrivControl + 76  es_out.c:3998
    13  libvlccore.9.dylib                    0x103021900 EsOutVaPrivControlLocked + 392  es_out.c:0
    12  libvlccore.9.dylib                    0x1030230b4 EsOutSelect + 456  es_out.c:0
    11  libvlccore.9.dylib                    0x103023f64 EsOutSelectEs + 212  es_out.c:2462
    10  libvlccore.9.dylib                    0x10302352c EsOutCreateDecoder + 364  es_out.c:0
    9   libvlccore.9.dylib                    0x10301a854 decoder_New + 604  decoder.c:2207
    8   libvlccore.9.dylib                    0x10301c828 LoadDecoder + 200  decoder.c:0
    7   libvlccore.9.dylib                    0x1030078d0 module_need + 56  modules.c:272
    6   libvlccore.9.dylib                    0x1030077a4 vlc_module_load + 272  modules.c:233
    5   libvlccore.9.dylib                    0x10300797c generic_start + 68  modules.c:261
    4   ???                                   0x109b2151c 0x7fffffffffffffff + 9223372041312408861
    3   libvlccore.9.dylib                    0x10301f154 decoder_Init + 76  decoder_helpers.c:50
    2   libvlccore.9.dylib                    0x10306d214 es_format_Copy + 112  es_format.c:336
    1   libsystem_c.dylib                     0x185d26a64 strdup + 40
    0   libsystem_malloc.dylib                0x185cc8a68 _malloc_zone_malloc_instrumented_or_legacy + 148 
    ====
        1 (16 bytes) ROOT LEAK: <malloc in es_format_Copy 0x12008a0f0> [16]

    STACK OF 1 INSTANCE OF 'ROOT LEAK: <malloc in es_format_Copy>':
    22  libsystem_pthread.dylib               0x185e89d34 thread_start + 8
    21  libsystem_pthread.dylib               0x185e8ef94 _pthread_start + 136
    20  libvlccore.9.dylib                    0x10302c1e4 Run + 72  input.c:418
    19  libvlccore.9.dylib                    0x10302e2d4 Init + 4620  input.c:1354
    18  libvlccore.9.dylib                    0x103032704 es_out_PrivControl + 68  es_out.h:133
    17  libvlccore.9.dylib                    0x10302a1f4 PrivControl + 864  es_out_timeshift.c:828
    16  libvlccore.9.dylib                    0x10302aec0 CmdExecutePrivControl + 216  es_out_timeshift.c:1903
    15  libvlccore.9.dylib                    0x10302af10 es_out_in_PrivControl + 60  es_out_timeshift.c:489
    14  libvlccore.9.dylib                    0x1030212a0 EsOutPrivControl + 76  es_out.c:3998
    13  libvlccore.9.dylib                    0x103021900 EsOutVaPrivControlLocked + 392  es_out.c:0
    12  libvlccore.9.dylib                    0x1030230b4 EsOutSelect + 456  es_out.c:0
    11  libvlccore.9.dylib                    0x103023f64 EsOutSelectEs + 212  es_out.c:2462
    10  libvlccore.9.dylib                    0x10302352c EsOutCreateDecoder + 364  es_out.c:0
    9   libvlccore.9.dylib                    0x10301a854 decoder_New + 604  decoder.c:2207
    8   libvlccore.9.dylib                    0x10301c828 LoadDecoder + 200  decoder.c:0
    7   libvlccore.9.dylib                    0x1030078d0 module_need + 56  modules.c:272
    6   libvlccore.9.dylib                    0x1030077a4 vlc_module_load + 272  modules.c:233
    5   libvlccore.9.dylib                    0x10300797c generic_start + 68  modules.c:261
    4   ???                                   0x109b2151c 0x7fffffffffffffff + 9223372041312408861
    3   libvlccore.9.dylib                    0x10301f154 decoder_Init + 76  decoder_helpers.c:50
    2   libvlccore.9.dylib                    0x10306d214 es_format_Copy + 112  es_format.c:336
    1   libsystem_c.dylib                     0x185d26a64 strdup + 40
    0   libsystem_malloc.dylib                0x185cc8a68 _malloc_zone_malloc_instrumented_or_legacy + 148 
    ====
        1 (16 bytes) ROOT LEAK: <malloc in es_format_Copy 0x10f0f9eb0> [16]

    STACK OF 1 INSTANCE OF 'ROOT LEAK: <malloc in es_format_Copy>':
    22  libsystem_pthread.dylib               0x185e89d34 thread_start + 8
    21  libsystem_pthread.dylib               0x185e8ef94 _pthread_start + 136
    20  libvlccore.9.dylib                    0x10302c1e4 Run + 72  input.c:418
    19  libvlccore.9.dylib                    0x10302e2d4 Init + 4620  input.c:1354
    18  libvlccore.9.dylib                    0x103032704 es_out_PrivControl + 68  es_out.h:133
    17  libvlccore.9.dylib                    0x10302a1f4 PrivControl + 864  es_out_timeshift.c:828
    16  libvlccore.9.dylib                    0x10302aec0 CmdExecutePrivControl + 216  es_out_timeshift.c:1903
    15  libvlccore.9.dylib                    0x10302af10 es_out_in_PrivControl + 60  es_out_timeshift.c:489
    14  libvlccore.9.dylib                    0x1030212a0 EsOutPrivControl + 76  es_out.c:3998
    13  libvlccore.9.dylib                    0x103021900 EsOutVaPrivControlLocked + 392  es_out.c:0
    12  libvlccore.9.dylib                    0x1030230b4 EsOutSelect + 456  es_out.c:0
    11  libvlccore.9.dylib                    0x103023f64 EsOutSelectEs + 212  es_out.c:2462
    10  libvlccore.9.dylib                    0x10302352c EsOutCreateDecoder + 364  es_out.c:0
    9   libvlccore.9.dylib                    0x10301a854 decoder_New + 604  decoder.c:2207
    8   libvlccore.9.dylib                    0x10301c828 LoadDecoder + 200  decoder.c:0
    7   libvlccore.9.dylib                    0x1030078d0 module_need + 56  modules.c:272
    6   libvlccore.9.dylib                    0x1030077a4 vlc_module_load + 272  modules.c:233
    5   libvlccore.9.dylib                    0x10300797c generic_start + 68  modules.c:261
    4   ???                                   0x109b214d8 0x7fffffffffffffff + 9223372041312408793
    3   libvlccore.9.dylib                    0x10301f154 decoder_Init + 76  decoder_helpers.c:50
    2   libvlccore.9.dylib                    0x10306d214 es_format_Copy + 112  es_format.c:336
    1   libsystem_c.dylib                     0x185d26a64 strdup + 40
    0   libsystem_malloc.dylib                0x185cc8a68 _malloc_zone_malloc_instrumented_or_legacy + 148 
    ====
        1 (16 bytes) ROOT LEAK: <malloc in es_format_Copy 0x120089de0> [16]

    STACK OF 1 INSTANCE OF 'ROOT LEAK: <malloc in es_format_Copy>':
    21  libsystem_pthread.dylib               0x185e89d34 thread_start + 8
    20  libsystem_pthread.dylib               0x185e8ef94 _pthread_start + 136
    19  libvlccore.9.dylib                    0x10302c1e4 Run + 72  input.c:418
    18  libvlccore.9.dylib                    0x10302e2d4 Init + 4620  input.c:1354
    17  libvlccore.9.dylib                    0x103032704 es_out_PrivControl + 68  es_out.h:133
    16  libvlccore.9.dylib                    0x10302a1f4 PrivControl + 864  es_out_timeshift.c:828
    15  libvlccore.9.dylib                    0x10302aec0 CmdExecutePrivControl + 216  es_out_timeshift.c:1903
    14  libvlccore.9.dylib                    0x10302af10 es_out_in_PrivControl + 60  es_out_timeshift.c:489
    13  libvlccore.9.dylib                    0x1030212a0 EsOutPrivControl + 76  es_out.c:3998
    12  libvlccore.9.dylib                    0x103021900 EsOutVaPrivControlLocked + 392  es_out.c:0
    11  libvlccore.9.dylib                    0x1030230b4 EsOutSelect + 456  es_out.c:0
    10  libvlccore.9.dylib                    0x103023f64 EsOutSelectEs + 212  es_out.c:2462
    9   libvlccore.9.dylib                    0x10302352c EsOutCreateDecoder + 364  es_out.c:0
    8   libvlccore.9.dylib                    0x10301a854 decoder_New + 604  decoder.c:2207
    7   libvlccore.9.dylib                    0x10301c828 LoadDecoder + 200  decoder.c:0
    6   libvlccore.9.dylib                    0x1030078d0 module_need + 56  modules.c:272
    5   libvlccore.9.dylib                    0x1030077a4 vlc_module_load + 272  modules.c:233
    4   libvlccore.9.dylib                    0x10300797c generic_start + 68  modules.c:261
    3   ???                                   0x109b214a4 0x7fffffffffffffff + 9223372041312408741
    2   libvlccore.9.dylib                    0x10306d214 es_format_Copy + 112  es_format.c:336
    1   libsystem_c.dylib                     0x185d26a64 strdup + 40
    0   libsystem_malloc.dylib                0x185cc8a68 _malloc_zone_malloc_instrumented_or_legacy + 148 
    ====
        1 (16 bytes) ROOT LEAK: <malloc in es_format_Copy 0x120088240> [16]

    STACK OF 1 INSTANCE OF 'ROOT LEAK: <malloc in es_format_Copy>':
    22  libsystem_pthread.dylib               0x185e89d34 thread_start + 8
    21  libsystem_pthread.dylib               0x185e8ef94 _pthread_start + 136
    20  libvlccore.9.dylib                    0x10302c1e4 Run + 72  input.c:418
    19  libvlccore.9.dylib                    0x10302e2d4 Init + 4620  input.c:1354
    18  libvlccore.9.dylib                    0x103032704 es_out_PrivControl + 68  es_out.h:133
    17  libvlccore.9.dylib                    0x10302a1f4 PrivControl + 864  es_out_timeshift.c:828
    16  libvlccore.9.dylib                    0x10302aec0 CmdExecutePrivControl + 216  es_out_timeshift.c:1903
    15  libvlccore.9.dylib                    0x10302af10 es_out_in_PrivControl + 60  es_out_timeshift.c:489
    14  libvlccore.9.dylib                    0x1030212a0 EsOutPrivControl + 76  es_out.c:3998
    13  libvlccore.9.dylib                    0x103021900 EsOutVaPrivControlLocked 
parent 54f953b3
No related branches found
No related tags found
Loading
Pipeline #511911 passed with stage
in 11 minutes and 52 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment