From 89b114fe44016c9bf96662fdebfc048f8540ee1d Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Mon, 5 May 2008 11:19:13 +0000 Subject: gst/rtsp/gstrtspsrc.c: Don't leak file descriptors on error. Fixes #531532. Original commit message from CVS: Patch by: Sjoerd Simons * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_init), (gst_rtspsrc_open): Don't leak file descriptors on error. Fixes #531532. --- gst/rtsp/gstrtspsrc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gst/rtsp') diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 069b6d37..6c53138d 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -4064,6 +4064,10 @@ setup_failed: } cleanup_error: { + if (src->connection) { + gst_rtsp_connection_free (src->connection); + src->connection = NULL; + } GST_RTSP_STATE_UNLOCK (src); gst_rtsp_message_unset (&request); gst_rtsp_message_unset (&response); -- cgit