utils: Fix double free in error case

This was detected by Coverity. The content point would have been freed gain in
the done: label.

CID 1461289
This commit is contained in:
Nicolas Dufresne 2020-04-07 18:33:08 -04:00
parent 81770eda7e
commit 4bc9f73650

View file

@ -662,7 +662,6 @@ done:
return structures;
failed:
g_free (content);
if (structures)
g_list_free_full (structures, (GDestroyNotify) gst_structure_free);
structures = NULL;