mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
udpsrc: Plug leaks of saddr in error cases
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/977>
This commit is contained in:
parent
e425bcada5
commit
0ff50d6723
1 changed files with 2 additions and 0 deletions
|
@ -1213,6 +1213,7 @@ receive_error:
|
|||
{
|
||||
gst_buffer_unmap (outbuf, &info);
|
||||
gst_memory_unmap (udpsrc->extra_mem, &extra_info);
|
||||
g_clear_object (&saddr);
|
||||
if (g_error_matches (err, G_IO_ERROR, G_IO_ERROR_BUSY) ||
|
||||
g_error_matches (err, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
|
||||
g_clear_error (&err);
|
||||
|
@ -1226,6 +1227,7 @@ receive_error:
|
|||
}
|
||||
skip_error:
|
||||
{
|
||||
g_clear_object (&saddr);
|
||||
GST_ELEMENT_ERROR (udpsrc, STREAM, DECODE, (NULL),
|
||||
("UDP buffer to small to skip header"));
|
||||
return GST_FLOW_ERROR;
|
||||
|
|
Loading…
Reference in a new issue