From: Edward Hervey Date: Wed, 16 Apr 2014 13:18:44 +0000 (+0200) Subject: dvbsrc: Don't close a fd that wasn't open X-Git-Tag: 1.19.3~507^2~11385 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c947e820cf12042ae488d92dc35eac80fac6863b;p=platform%2Fupstream%2Fgstreamer.git dvbsrc: Don't close a fd that wasn't open We are handling the failure cases in this block where the open failed CID #206179 --- diff --git a/sys/dvb/gstdvbsrc.c b/sys/dvb/gstdvbsrc.c index 4fa577f..148694e 100644 --- a/sys/dvb/gstdvbsrc.c +++ b/sys/dvb/gstdvbsrc.c @@ -1026,7 +1026,6 @@ gst_dvbsrc_open_frontend (GstDvbSrc * object, gboolean writable) break; } - close (object->fd_frontend); g_free (frontend_dev); return FALSE; }