diff options
author | Satya Prakash Gupta <sp.gupta@samsung.com> | 2017-08-31 13:24:15 +0530 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-08-31 11:04:05 +0100 |
commit | d690fbd37dccbc7970529ad41bcf633282c09c78 (patch) | |
tree | 7de5add25d8cc7ee4178e3ae1a9e9303fbb2cf06 | |
parent | fdd6479f4bf5aeb8fa13303cda5959525f8183e0 (diff) |
sdp: fix Memory leak in error case
https://bugzilla.gnome.org/show_bug.cgi?id=787059
-rw-r--r-- | gst/rtsp-server/rtsp-sdp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/rtsp-server/rtsp-sdp.c b/gst/rtsp-server/rtsp-sdp.c index 0380f3e..b037b28 100644 --- a/gst/rtsp-server/rtsp-sdp.c +++ b/gst/rtsp-server/rtsp-sdp.c @@ -128,6 +128,7 @@ mikey_add_crypto_sessions (GstRTSPStream * stream, GstMIKEYMessage * msg) session = gst_rtsp_stream_get_rtpsession (stream); if (session == NULL) { GST_ERROR ("unable to get RTP session from stream %p", stream); + gst_object_unref (encoder); return FALSE; } |