[vlc-commits] [Git][videolan/vlc][master] asf: fix memory leak in ASFReadObjMarker
Steve Lhomme (@robUx4)
gitlab at videolan.org
Sat Feb 14 09:17:48 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
1fd05646 by cs-308-2023 at 2026-02-14T09:02:48+00:00
asf: fix memory leak in ASFReadObjMarker
- - - - -
1 changed file:
- modules/demux/asf/libasf.c
Changes:
=====================================
modules/demux/asf/libasf.c
=====================================
@@ -1386,7 +1386,10 @@ static int ASF_ReadObject_marker(stream_t *s, asf_object_t *p_obj)
p_mk->marker = calloc( p_mk->i_count,
sizeof( asf_marker_t ) );
if( !p_mk->marker )
+ {
+ free( p_mk->name );
return VLC_ENOMEM;
+ }
for( uint32_t i = 0; i < p_mk->i_count; i++ )
{
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1fd0564673699416f21f3a7f9d443fa55dbefea5
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1fd0564673699416f21f3a7f9d443fa55dbefea5
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list