https://bugzilla.gnome.org/show_bug.cgi?id=788481
/* we don't support R/W together */
if ((flags & AVIO_FLAG_WRITE) && (flags & AVIO_FLAG_READ)) {
GST_WARNING ("Only read-only or write-only are supported");
+ g_free (info);
return -EINVAL;
}
buffer = av_malloc (buffer_size);
if (buffer == NULL) {
GST_WARNING ("Failed to allocate buffer");
+ g_free (info);
return -ENOMEM;
}
gst_ffmpegdata_read, gst_ffmpegdata_write, gst_ffmpegdata_seek);
if (*context == NULL) {
GST_WARNING ("Failed to allocate memory");
+ g_free (info);
av_free (buffer);
return -ENOMEM;
}