mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 01:36:25 +01:00
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:
parent
cf0e1967a3
commit
3859bbd9fe
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user