Commit 25c26a4c authored by Vincent Penquerc'h's avatar Vincent Penquerc'h

rtptheordepay: fix leaks

Coverity 1212163
parent 8e80478c
...@@ -581,6 +581,7 @@ gst_rtp_theora_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf) ...@@ -581,6 +581,7 @@ gst_rtp_theora_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
no_output: no_output:
{ {
gst_rtp_buffer_unmap (&rtp); gst_rtp_buffer_unmap (&rtp);
g_free (to_free);
return NULL; return NULL;
} }
/* ERORRS */ /* ERORRS */
...@@ -600,6 +601,7 @@ ignore_reserved: ...@@ -600,6 +601,7 @@ ignore_reserved:
{ {
GST_WARNING_OBJECT (rtptheoradepay, "reserved TDT ignored"); GST_WARNING_OBJECT (rtptheoradepay, "reserved TDT ignored");
gst_rtp_buffer_unmap (&rtp); gst_rtp_buffer_unmap (&rtp);
g_free (to_free);
return NULL; return NULL;
} }
length_short: length_short:
...@@ -622,6 +624,7 @@ request_config: ...@@ -622,6 +624,7 @@ request_config:
gst_structure_new ("GstForceKeyUnit", gst_structure_new ("GstForceKeyUnit",
"all-headers", G_TYPE_BOOLEAN, TRUE, NULL))); "all-headers", G_TYPE_BOOLEAN, TRUE, NULL)));
gst_rtp_buffer_unmap (&rtp); gst_rtp_buffer_unmap (&rtp);
g_free (to_free);
return NULL; return NULL;
} }
request_keyframe: request_keyframe:
...@@ -631,6 +634,7 @@ request_keyframe: ...@@ -631,6 +634,7 @@ request_keyframe:
gst_event_new_custom (GST_EVENT_CUSTOM_UPSTREAM, gst_event_new_custom (GST_EVENT_CUSTOM_UPSTREAM,
gst_structure_new_empty ("GstForceKeyUnit"))); gst_structure_new_empty ("GstForceKeyUnit")));
gst_rtp_buffer_unmap (&rtp); gst_rtp_buffer_unmap (&rtp);
g_free (to_free);
return NULL; return NULL;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment