Commit c8549fb5 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: ts: memleak due missing psi pkt release

parent 454c6cf0
...@@ -1301,10 +1301,12 @@ static int Demux( demux_t *p_demux ) ...@@ -1301,10 +1301,12 @@ static int Demux( demux_t *p_demux )
{ {
case TYPE_PAT: case TYPE_PAT:
dvbpsi_packet_push( p_pid->u.p_pat->handle, p_pkt->p_buffer ); dvbpsi_packet_push( p_pid->u.p_pat->handle, p_pkt->p_buffer );
block_Release( p_pkt );
break; break;
case TYPE_PMT: case TYPE_PMT:
dvbpsi_packet_push( p_pid->u.p_pmt->handle, p_pkt->p_buffer ); dvbpsi_packet_push( p_pid->u.p_pmt->handle, p_pkt->p_buffer );
block_Release( p_pkt );
break; break;
case TYPE_PES: case TYPE_PES:
...@@ -1340,6 +1342,7 @@ static int Demux( demux_t *p_demux ) ...@@ -1340,6 +1342,7 @@ static int Demux( demux_t *p_demux )
case TYPE_EIT: case TYPE_EIT:
if( p_sys->b_dvb_meta ) if( p_sys->b_dvb_meta )
dvbpsi_packet_push( p_pid->u.p_psi->handle, p_pkt->p_buffer ); dvbpsi_packet_push( p_pid->u.p_psi->handle, p_pkt->p_buffer );
block_Release( p_pkt );
break; break;
default: default:
......
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