rtph263pay: fix leak
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 12 Jun 2014 10:11:38 +0000 (11:11 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Thu, 12 Jun 2014 10:11:38 +0000 (11:11 +0100)
Coverity 1212157

gst/rtp/gstrtph263pay.c

index 972c025..4de0fab 100644 (file)
@@ -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