Commit 63c868ec authored by Jean-Paul Saman's avatar Jean-Paul Saman

dvbinfo: Fix resource leak (CID: 17271)

The error path for dvbpsi_AttachDemux() in handle_atsc_MGT failed to release
allocated resources.
parent 217d71c4
......@@ -1703,6 +1703,8 @@ static void handle_atsc_MGT(void *p_data, dvbpsi_atsc_mgt_t *p_mgt)
if (!dvbpsi_AttachDemux(p->handle, handle_subtable, p_stream))
{
fprintf(stderr, "dvbinfo: Failed to attach new ATSC EIT decoder\n");
dvbpsi_delete(p->handle);
free(p);
break;
}
......
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