festival: don't leak fd on error

This commit is contained in:
Stefan Kost 2011-05-20 00:20:07 +03:00
parent ed42bca0dd
commit b1f0f2e83f

View file

@ -311,6 +311,7 @@ gst_festival_chain (GstPad * pad, GstBuffer * buf)
GST_DEBUG_OBJECT (festival, "issued Parameter.set command");
if (read_response (festival) == FALSE) {
ret = GST_FLOW_ERROR;
fclose (fd);
goto out;
}