rtpg729depay: unmap rtp buffer in error path
authorTim-Philipp Müller <tim@centricular.com>
Tue, 7 Jul 2015 14:50:50 +0000 (15:50 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 7 Jul 2015 14:50:50 +0000 (15:50 +0100)
gst/rtp/gstrtpg729depay.c

index 9910add..8a9c977 100644 (file)
@@ -214,6 +214,7 @@ gst_rtp_g729_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
 bad_packet:
   {
     /* no fatal error */
+    gst_rtp_buffer_unmap (&rtp);
     return NULL;
   }
 }