diff options
author | Edward Hervey <edward@centricular.com> | 2017-04-12 10:54:23 +0200 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2017-04-12 10:54:23 +0200 |
commit | 94fe5c690e757ef986f7ba4eee1a068eded07bf4 (patch) | |
tree | 336d67896904eb850d841798b9c766283d3ff3c7 /ext | |
parent | 92ce999ca6ee3969c413f8010cee35aa5f3e22d0 (diff) | |
download | gstreamer-plugins-bad-94fe5c690e757ef986f7ba4eee1a068eded07bf4.tar.gz |
mpdparser: Fix leak
The error: location takes care of freeing new_representation
CID #1405027
Diffstat (limited to 'ext')
-rw-r--r-- | ext/dash/gstmpdparser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index bfb3cb6bf..41212abae 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -1873,12 +1873,12 @@ gst_mpdparser_parse_representation_node (GList ** list, xmlNode * a_node, if (!gst_mpdparser_get_xml_prop_string_no_whitespace (a_node, "id", &new_representation->id)) { GST_ERROR ("Cannot parse Representation id, invalid manifest"); - return FALSE; + goto error; } if (!gst_mpdparser_get_xml_prop_unsigned_integer (a_node, "bandwidth", 0, &new_representation->bandwidth)) { GST_ERROR ("Cannot parse Representation bandwidth, invalid manifest"); - return FALSE; + goto error; } gst_mpdparser_get_xml_prop_unsigned_integer (a_node, "qualityRanking", 0, &new_representation->qualityRanking); |