[dvblast-devel] [Git][videolan/dvblast][master] en50221: fix (small) memory leak
Christophe Massiot
gitlab at videolan.org
Sat Oct 27 20:26:46 CEST 2018
Christophe Massiot pushed to branch master at VideoLAN / dvblast
Commits:
33b85b43 by Christophe Massiot at 2018-10-27T18:25:51Z
en50221: fix (small) memory leak
Reported by "debugasm".
- - - - -
1 changed file:
- en50221.c
Changes:
=====================================
en50221.c
=====================================
@@ -1391,9 +1391,14 @@ static void ConditionalAccessHandle( access_t * p_access, int i_session_id,
*****************************************************************************/
static void ConditionalAccessClose( access_t * p_access, int i_session_id )
{
+ system_ids_t *p_ids =
+ (system_ids_t *)p_sessions[i_session_id - 1].p_sys;
msg_Dbg( p_access, "closing ConditionalAccess session (%d)", i_session_id );
+ if ( p_ids->i_nb_system_ids )
+ free( p_ids->pi_system_ids );
+
free( p_sessions[i_session_id - 1].p_sys );
}
View it on GitLab: https://code.videolan.org/videolan/dvblast/commit/33b85b43449561776ded6ad62a0eba84018f388f
--
View it on GitLab: https://code.videolan.org/videolan/dvblast/commit/33b85b43449561776ded6ad62a0eba84018f388f
You're receiving this email because of your account on code.videolan.org.
More information about the dvblast-devel
mailing list