file descriptor leak - found by Marc Espie <espie@nerim.net>

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6301 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-06-04 19:17:52 +00:00
parent cf0e1967a3
commit 3859bbd9fe
1 changed files with 1 additions and 0 deletions

View File

@ -259,6 +259,7 @@ void free_stream(stream_t *s){
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);
}