[vlc-commits] [Git][videolan/vlc][3.0.x] 2 commits: access: decklink: fix opt leak
Rémi Denis-Courmont (@Courmisch)
gitlab at videolan.org
Thu Oct 9 17:32:12 UTC 2025
Rémi Denis-Courmont pushed to branch 3.0.x at VideoLAN / VLC
Commits:
52b1b3df by Johannes Kauffmann at 2025-10-09T16:56:46+00:00
access: decklink: fix opt leak
(cherry picked from commit 9f54ff720b6a67b0b63020e39a5527dc5841e38f)
- - - - -
2cb79f83 by Johannes Kauffmann at 2025-10-09T16:56:46+00:00
livehttp: fix psz_keyfile and key_uri leak
(cherry picked from commit dc90c38045f43d8a6ab0dc5de06112736013bf58)
- - - - -
2 changed files:
- modules/access/decklink.cpp
- modules/access_output/livehttp.c
Changes:
=====================================
modules/access/decklink.cpp
=====================================
@@ -437,6 +437,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
=====================================
@@ -282,6 +282,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 );
@@ -290,6 +292,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 );
@@ -817,6 +820,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 );
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/b69ca0fa1a5ec0703f8a8514a471d71ed5aca058...2cb79f83df4c819ef1f5cd0f5d163870b62766d0
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/b69ca0fa1a5ec0703f8a8514a471d71ed5aca058...2cb79f83df4c819ef1f5cd0f5d163870b62766d0
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