changeset 6300:c31d15532695

file descriptor leak - found by Marc Espie <espie@nerim.net>
author arpi
date Tue, 04 Jun 2002 19:17:52 +0000
parents 4446af3c1a75
children 41c680dcf915
files libmpdemux/stream.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/stream.c	Tue Jun 04 18:39:16 2002 +0000
+++ b/libmpdemux/stream.c	Tue Jun 04 19:17:52 2002 +0000
@@ -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);
 }