[MPlayer-cvslog] r37655 - trunk/stream/stream_cue.c

ib subversion at mplayerhq.hu
Wed Feb 10 07:52:36 CET 2016


Author: ib
Date: Wed Feb 10 07:52:36 2016
New Revision: 37655

Log:
Free open file handle.

Modified:
   trunk/stream/stream_cue.c

Modified: trunk/stream/stream_cue.c
==============================================================================
--- trunk/stream/stream_cue.c	Wed Feb 10 07:24:18 2016	(r37654)
+++ trunk/stream/stream_cue.c	Wed Feb 10 07:52:36 2016	(r37655)
@@ -399,6 +399,7 @@ static int cue_read_cue (const char *in_
     mp_msg(MSGT_OPEN,MSGL_ERR,
            MSGTR_MPDEMUX_CUEREAD_ErrReadingFromCueFile, in_cue_filename);
     fclose (fd_cue);
+    close (fd_bin);
     return -1;
   }
 
@@ -409,6 +410,7 @@ static int cue_read_cue (const char *in_
       mp_msg(MSGT_OPEN,MSGL_ERR,
              MSGTR_MPDEMUX_CUEREAD_ErrReadingFromCueFile, in_cue_filename);
       fclose (fd_cue);
+      close (fd_bin);
       return -1;
     }
   }
@@ -418,6 +420,7 @@ static int cue_read_cue (const char *in_
     mp_msg(MSGT_OPEN,MSGL_ERR,
            MSGTR_MPDEMUX_CUEREAD_ErrGettingBinFileSize);
     fclose (fd_cue);
+    close (fd_bin);
     return -1;
   }
 


More information about the MPlayer-cvslog mailing list