Skip to content

bug: media-playback: mp_media_next_packet leaks a packet on the reset path #463

Closed

Description

@zackees

LeakSanitizer and valgrind both report it from test_media_network_timeout (run, sanitize-asan/tests):

Direct leak of 104 byte(s) in 1 object(s) allocated from:
    #1 av_malloc (libavutil)
    #2 mp_media_next_packet  shared/media-playback/media-playback/media.c:176
    #3 mp_media_prepare_frames media.c:271
    #4 mp_media_reset        media.c:590
    #5 mp_media_thread       media.c:870

An av_malloc'd packet allocated in mp_media_next_packet is not freed when the network read times out during mp_media_reset. Found for #448/#449. Fix with a RED cmocka/LSan check: the existing test_media_network_timeout already reproduces it under ASan.

Activity

  1. zackees commented on Oct 13, 2026

    @zackees
    MemberAuthor

    Claiming: #463.

  2. added
    claimed
    on Oct 13, 2026
  3. added a commit that references this issue on Oct 13, 2026
    7e0f289
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions