You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: media-playback: mp_media_next_packet leaks a packet on the reset path #463
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
zackees commentedon Oct 13, 2026
Claiming: #463.
media-playback: Return the packet to the pool when a read fails