[MPlayer-users] PATCH: mplayer is leaking file descriptors

Georgi Georgiev chutz at chubaka.homeip.net
Tue Jun 4 18:06:01 CEST 2002


On Tue, Jun 04, 2002 at 01:23:29PM +0200, Marc Espie wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> At least, close them in free_stream...
> 
> Index: stream.c
> ===================================================================
> RCS file: /cvsroot/mplayer/main/libmpdemux/stream.c,v
> retrieving revision 1.35
> diff -u -r1.35 stream.c
> --- stream.c	20 May 2002 03:25:24 -0000	1.35
> +++ stream.c	4 Jun 2002 11:36:38 -0000
> @@ -260,6 +260,7 @@
>      waitpid(s->cache_pid,NULL,0);
>    }
>    if(s->priv) free(s->priv);
> +  close(s->fd);
>    free(s);
>  }

I guess that either a "Read DOCS/tech/patches.txt" or a "Patches should be sent
to dev-eng" is headed your way, if not both.

-- 
 /^^^^^^^^^^^^^^^^^^^^^^^^^^^\/^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\
/ Georgi Georgiev    (-<     / All diplomacy is a continuation of war by  \
\ chutz at chubaka.net  /\   .o)\ other means. -- Chou En Lai                /
/ +81(90)6266-1163  V_/_ |(/)/                                            \
\___________________________/\____________________________________________/




More information about the MPlayer-users mailing list