From fe4c5b92b1fdd954ccad49addfd34dcc5f6916f8 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Thu, 12 Jun 2014 11:11:38 +0100 Subject: [PATCH] rtph263pay: fix leak Coverity 1212157 --- gst/rtp/gstrtph263pay.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/rtp/gstrtph263pay.c b/gst/rtp/gstrtph263pay.c index 972c0254a7..4de0fabdd3 100644 --- a/gst/rtp/gstrtph263pay.c +++ b/gst/rtp/gstrtph263pay.c @@ -1713,7 +1713,8 @@ gst_rtp_h263_pay_flush (GstRtpH263Pay * rtph263pay) if (!gst_rtp_h263_pay_mode_B_fragment (rtph263pay, context, context->gobs[i])) { GST_ERROR ("There was an error fragmenting in mode B"); - return GST_FLOW_ERROR; + ret = GST_FLOW_ERROR; + goto end; } } else { //IMPLEMENT C mode