festival: don't leak fd on error
authorStefan Kost <ensonic@users.sf.net>
Thu, 19 May 2011 21:20:07 +0000 (00:20 +0300)
committerStefan Kost <ensonic@users.sf.net>
Thu, 19 May 2011 21:20:07 +0000 (00:20 +0300)
gst/festival/gstfestival.c

index dbecfdb..6423bf5 100644 (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;
   }