mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-05 09:00:54 +00:00
rtspsrc: Fix string leak
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3648>
This commit is contained in:
parent
620974352d
commit
d5086a1091
1 changed files with 2 additions and 2 deletions
|
@ -5891,11 +5891,11 @@ interrupt:
|
|||
}
|
||||
connect_error:
|
||||
{
|
||||
gchar *str = gst_rtsp_strresult (res);
|
||||
GstFlowReturn ret;
|
||||
|
||||
src->conninfo.connected = FALSE;
|
||||
if (res != GST_RTSP_EINTR) {
|
||||
gchar *str = gst_rtsp_strresult (res);
|
||||
GST_ELEMENT_ERROR (src, RESOURCE, OPEN_READ_WRITE, (NULL),
|
||||
("Could not connect to server. (%s)", str));
|
||||
g_free (str);
|
||||
|
@ -5916,11 +5916,11 @@ receive_error:
|
|||
}
|
||||
handle_request_failed:
|
||||
{
|
||||
gchar *str = gst_rtsp_strresult (res);
|
||||
GstFlowReturn ret;
|
||||
|
||||
gst_rtsp_message_unset (&message);
|
||||
if (res != GST_RTSP_EINTR) {
|
||||
gchar *str = gst_rtsp_strresult (res);
|
||||
GST_ELEMENT_ERROR (src, RESOURCE, WRITE, (NULL),
|
||||
("Could not handle server message. (%s)", str));
|
||||
g_free (str);
|
||||
|
|
Loading…
Reference in a new issue