Commit b8ff0552 authored by massiot's avatar massiot

* en50221.c: Fix CAPMT memory leak, patch by Marian.


git-svn-id: svn://svn.videolan.org/dvblast/trunk@50 55d3f8b6-4a41-4d2d-a900-313d1436a5b8
parent fa4643cf
...@@ -1176,7 +1176,10 @@ static void CAPMTFirst( access_t * p_access, int i_session_id, ...@@ -1176,7 +1176,10 @@ static void CAPMTFirst( access_t * p_access, int i_session_id,
&i_capmt_size ); &i_capmt_size );
if ( i_capmt_size ) if ( i_capmt_size )
{
APDUSend( p_access, i_session_id, AOT_CA_PMT, p_capmt, i_capmt_size ); APDUSend( p_access, i_session_id, AOT_CA_PMT, p_capmt, i_capmt_size );
free( p_capmt );
}
} }
/***************************************************************************** /*****************************************************************************
...@@ -1214,7 +1217,10 @@ static void CAPMTAdd( access_t * p_access, int i_session_id, ...@@ -1214,7 +1217,10 @@ static void CAPMTAdd( access_t * p_access, int i_session_id,
&i_capmt_size ); &i_capmt_size );
if ( i_capmt_size ) if ( i_capmt_size )
{
APDUSend( p_access, i_session_id, AOT_CA_PMT, p_capmt, i_capmt_size ); APDUSend( p_access, i_session_id, AOT_CA_PMT, p_capmt, i_capmt_size );
free( p_capmt );
}
} }
/***************************************************************************** /*****************************************************************************
...@@ -1234,7 +1240,10 @@ static void CAPMTUpdate( access_t * p_access, int i_session_id, ...@@ -1234,7 +1240,10 @@ static void CAPMTUpdate( access_t * p_access, int i_session_id,
&i_capmt_size ); &i_capmt_size );
if ( i_capmt_size ) if ( i_capmt_size )
{
APDUSend( p_access, i_session_id, AOT_CA_PMT, p_capmt, i_capmt_size ); APDUSend( p_access, i_session_id, AOT_CA_PMT, p_capmt, i_capmt_size );
free( p_capmt );
}
} }
/***************************************************************************** /*****************************************************************************
...@@ -1257,7 +1266,10 @@ static void CAPMTDelete( access_t * p_access, int i_session_id, ...@@ -1257,7 +1266,10 @@ static void CAPMTDelete( access_t * p_access, int i_session_id,
&i_capmt_size ); &i_capmt_size );
if ( i_capmt_size ) if ( i_capmt_size )
{
APDUSend( p_access, i_session_id, AOT_CA_PMT, p_capmt, i_capmt_size ); APDUSend( p_access, i_session_id, AOT_CA_PMT, p_capmt, i_capmt_size );
free( p_capmt );
}
} }
/***************************************************************************** /*****************************************************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment