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) ...@@ -1666,8 +1666,8 @@ void libdvbpsi_exit(ts_stream_t *stream)
stream->i_pmt--; stream->i_pmt--;
p_prev = p_pmt; p_prev = p_pmt;
p_pmt = p_pmt->p_next; p_pmt = p_pmt->p_next;
if (p_pmt) if (p_prev)
p_pmt->p_next = NULL; p_prev->p_next = NULL;
free(p_prev); 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