[vlc-commits] [Git][videolan/vlc][master] 4 commits: access: decklink: fix opt leak
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Oct 3 11:32:49 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
9f54ff72 by Johannes Kauffmann at 2025-10-03T11:08:33+00:00
access: decklink: fix opt leak
- - - - -
dc90c380 by Johannes Kauffmann at 2025-10-03T11:08:33+00:00
livehttp: fix psz_keyfile and key_uri leak
- - - - -
0632e3a4 by Johannes Kauffmann at 2025-10-03T11:08:33+00:00
sout: bridge: fix new_id leak
- - - - -
dec7b648 by Johannes Kauffmann at 2025-10-03T11:08:33+00:00
sout: mosaic_bridge: fix psz_string leak
- - - - -
4 changed files:
- modules/access/decklink.cpp
- modules/access_output/livehttp.c
- modules/stream_out/bridge.c
- modules/stream_out/mosaic_bridge.c
Changes:
=====================================
modules/access/decklink.cpp
=====================================
@@ -505,6 +505,7 @@ static int GetAudioConn(demux_t *demux)
return VLC_EGENERIC;
}
+ free(opt);
if (sys->config->SetInt(bmdDeckLinkConfigAudioInputConnection, c) != S_OK) {
msg_Err(demux, "Failed to set audio input connection");
return VLC_EGENERIC;
=====================================
modules/access_output/livehttp.c
=====================================
@@ -278,6 +278,8 @@ static int Open( vlc_object_t *p_this )
if( p_sys->psz_keyfile && ( LoadCryptFile( p_access ) < 0 ) )
{
+ free( p_sys->key_uri );
+ free( p_sys->psz_keyfile );
free( p_sys->psz_indexUrl );
free( p_sys->psz_indexPath );
free( p_sys );
@@ -286,6 +288,7 @@ static int Open( vlc_object_t *p_this )
}
else if( !p_sys->psz_keyfile && ( CryptSetup( p_access, NULL ) < 0 ) )
{
+ free( p_sys->key_uri );
free( p_sys->psz_indexUrl );
free( p_sys->psz_indexPath );
free( p_sys );
@@ -813,6 +816,7 @@ static void Close( vlc_object_t * p_this )
destroySegment( segment );
}
+ free( p_sys->psz_keyfile );
free( p_sys->psz_indexUrl );
free( p_sys->psz_indexPath );
free( p_sys );
=====================================
modules/stream_out/bridge.c
=====================================
@@ -345,6 +345,7 @@ static int OpenOut( vlc_object_t *p_this )
if( asprintf( &p_sys->psz_name, "bridge-struct-%s", val.psz_string )<0 )
{
free( val.psz_string );
+ free( p_sys->new_id );
free( p_sys );
return VLC_ENOMEM;
}
@@ -363,6 +364,7 @@ static void CloseOut( sout_stream_t *p_stream )
out_sout_stream_sys_t *p_sys = (out_sout_stream_sys_t *)p_stream->p_sys;
free( p_sys->psz_name );
+ free( p_sys->new_id );
free( p_sys );
}
=====================================
modules/stream_out/mosaic_bridge.c
=====================================
@@ -641,6 +641,7 @@ static int Open( vlc_object_t *p_this )
if ( vlc_fourcc_GetChromaDescription( p_sys->i_chroma ) == NULL )
{
msg_Err( p_stream, "Unknown chroma" );
+ free( val.psz_string );
free( p_sys );
return VLC_EINVAL;
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/300cc5c4a176848fb62145d51b1d7a8d39477ef8...dec7b648f81df43ade94b50a699bdcc191efd146
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/300cc5c4a176848fb62145d51b1d7a8d39477ef8...dec7b648f81df43ade94b50a699bdcc191efd146
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