From: Seungha Yang Date: Tue, 27 Dec 2022 14:33:31 +0000 (+0900) Subject: rtspsrc: Fix string leak X-Git-Tag: 1.22.0~113 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6540c4e89c3a14f482941f7d1b3a8fe22e80f23a;p=platform%2Fupstream%2Fgstreamer.git rtspsrc: Fix string leak Part-of: --- diff --git a/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c b/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c index 63769f8..2f98052 100644 --- a/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c +++ b/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c @@ -6030,11 +6030,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); @@ -6055,11 +6055,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);