Commit 8139d078 authored by Jean-Paul Saman's avatar Jean-Paul Saman

examples/dvbininfo/libdvbpsi.c: Free ALL pmt's.

The p_prev->p_next was never set to NULL, but instead the p_pmt->p_next pointer was.
This resulted in never freeing additional PMT entries from the PAT.
parent 965e4296
......@@ -1666,8 +1666,8 @@ void libdvbpsi_exit(ts_stream_t *stream)
stream->i_pmt--;
p_prev = p_pmt;
p_pmt = p_pmt->p_next;
if (p_pmt)
p_pmt->p_next = NULL;
if (p_prev)
p_prev->p_next = NULL;
free(p_prev);
}
......
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