From: Stefan Kost Date: Thu, 19 May 2011 21:20:07 +0000 (+0300) Subject: festival: don't leak fd on error X-Git-Tag: 1.19.3~507^2~16050^2~137 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b1f0f2e83f85bf7395d7526390e1f731c8207f0f;p=platform%2Fupstream%2Fgstreamer.git festival: don't leak fd on error --- diff --git a/gst/festival/gstfestival.c b/gst/festival/gstfestival.c index dbecfdbe56..6423bf5b97 100644 --- a/gst/festival/gstfestival.c +++ b/gst/festival/gstfestival.c @@ -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; }