mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
sdp: Fix attribute leak
We need to free the strdup'd string (to_free) in all cases
This commit is contained in:
parent
fb4856c839
commit
e3216d1648
1 changed files with 2 additions and 2 deletions
|
@ -3331,8 +3331,8 @@ gst_sdp_media_add_rtcp_fb_attributes_from_media (const GstSDPMedia * media,
|
|||
gst_structure_set (s, key, G_TYPE_BOOLEAN, TRUE, NULL);
|
||||
GST_DEBUG ("adding caps: %s=TRUE", key);
|
||||
g_free (key);
|
||||
} else
|
||||
g_free (to_free);
|
||||
}
|
||||
g_free (to_free);
|
||||
}
|
||||
return GST_SDP_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue