sdp: Fix attribute leak

We need to free the strdup'd string (to_free) in all cases
This commit is contained in:
Edward Hervey 2016-11-28 16:51:43 +01:00 committed by Edward Hervey
parent fb4856c839
commit e3216d1648

View file

@ -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;
}