[Mplayer-cvslog] CVS: main/libmpdemux stream.c,1.35,1.36
pl
p_l at gmx.fr
Tue Jun 4 22:05:17 CEST 2002
On Tue, Jun 04, 2002 at 09:17:54PM +0200, Arpi of Ize wrote:
> 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);
^
0 is a valid fd even though s->fd is unlikely to be 0 8)
> if(s->priv) free(s->priv);
> free(s);
--
Best regards,
pl
More information about the MPlayer-cvslog
mailing list