Commit e902c03d authored by ivoire's avatar ivoire

Fix a potential memory leak.


git-svn-id: svn://svn.videolan.org/dvblast/trunk@77 55d3f8b6-4a41-4d2d-a900-313d1436a5b8
parent 597c3093
......@@ -293,6 +293,8 @@ static int TPDURecv( access_t * p_access, uint8_t i_slot, uint8_t *pi_tag,
if ( i_size < 5 )
{
msg_Err( p_access, "cannot read from CAM device (%d:%m)", i_size );
if( pi_size == NULL )
free( p_data );
return -1;
}
......@@ -300,6 +302,8 @@ static int TPDURecv( access_t * p_access, uint8_t i_slot, uint8_t *pi_tag,
{
msg_Err( p_access, "invalid read from CAM device (%d instead of %d)",
p_data[1], i_tcid );
if( pi_size == NULL )
free( p_data );
return -1;
}
......
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