mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
mpegtssection: Free data in error cases
Data is marked as "transfer full", if we have an error we need to free it.
This commit is contained in:
parent
720405b561
commit
cddabd751c
1 changed files with 1 additions and 0 deletions
|
@ -1223,6 +1223,7 @@ short_packet:
|
||||||
GST_WARNING
|
GST_WARNING
|
||||||
("PID 0x%04x section extends past provided data (got:%" G_GSIZE_FORMAT
|
("PID 0x%04x section extends past provided data (got:%" G_GSIZE_FORMAT
|
||||||
", need:%d)", pid, data_size, section_length + 3);
|
", need:%d)", pid, data_size, section_length + 3);
|
||||||
|
g_free (data);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue