[Mplayer-cvslog] CVS: main/libmpdemux stream.c,1.35,1.36

Arpi of Ize arpi at mplayerhq.hu
Tue Jun 4 21:17:54 CEST 2002


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv21359

Modified Files:
	stream.c 
Log Message:
file descriptor leak - found by Marc Espie <espie at nerim.net>


Index: stream.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/stream.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- stream.c	20 May 2002 03:25:24 -0000	1.35
+++ stream.c	4 Jun 2002 19:17:52 -0000	1.36
@@ -259,6 +259,7 @@
     kill(s->cache_pid,SIGKILL);
     waitpid(s->cache_pid,NULL,0);
   }
+  if(s->fd>0) close(s->fd);
   if(s->priv) free(s->priv);
   free(s);
 }




More information about the MPlayer-cvslog mailing list