From: Vincent Penquerc'h Date: Thu, 12 Jun 2014 10:24:15 +0000 (+0100) Subject: rtptheordepay: fix leaks X-Git-Tag: 1.3.3~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=25c26a4c4c0cda3372150054eac3a5725dccac1b;p=platform%2Fupstream%2Fgst-plugins-good.git rtptheordepay: fix leaks Coverity 1212163 --- diff --git a/gst/rtp/gstrtptheoradepay.c b/gst/rtp/gstrtptheoradepay.c index 39c8d2a..ec4011f 100644 --- a/gst/rtp/gstrtptheoradepay.c +++ b/gst/rtp/gstrtptheoradepay.c @@ -581,6 +581,7 @@ gst_rtp_theora_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf) no_output: { gst_rtp_buffer_unmap (&rtp); + g_free (to_free); return NULL; } /* ERORRS */ @@ -600,6 +601,7 @@ ignore_reserved: { GST_WARNING_OBJECT (rtptheoradepay, "reserved TDT ignored"); gst_rtp_buffer_unmap (&rtp); + g_free (to_free); return NULL; } length_short: @@ -622,6 +624,7 @@ request_config: gst_structure_new ("GstForceKeyUnit", "all-headers", G_TYPE_BOOLEAN, TRUE, NULL))); gst_rtp_buffer_unmap (&rtp); + g_free (to_free); return NULL; } request_keyframe: @@ -631,6 +634,7 @@ request_keyframe: gst_event_new_custom (GST_EVENT_CUSTOM_UPSTREAM, gst_structure_new_empty ("GstForceKeyUnit"))); gst_rtp_buffer_unmap (&rtp); + g_free (to_free); return NULL; } }