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 VLC_EGENERIC;
}
{
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 VLC_EGENERIC;
}
break;
}
- if ( TPDUSend( p_access, i_slot, T_CREATE_TC, NULL, 0 )
+ if ( TPDUSend( p_access, i_slot, T_CREATE_TC, NULL, NULL )
!= VLC_SUCCESS )
{
msg_Err( p_access,
if ( !p_sys->pb_tc_has_data[i_slot] )
{
- if ( TPDUSend( p_access, i_slot, T_DATA_LAST, NULL, 0 ) !=
+ if ( TPDUSend( p_access, i_slot, T_DATA_LAST, NULL, NULL ) !=
VLC_SUCCESS )
{
msg_Err( p_access,