diff stream/stream.c @ 30361:ca1eae448911

Call cache-uninit unconditionally, it should always be safe to call.
author reimar
date Sat, 23 Jan 2010 12:21:07 +0000
parents 4f740437ed2b
children ce0122361a39
line wrap: on
line diff
--- a/stream/stream.c	Sat Jan 23 12:13:28 2010 +0000
+++ b/stream/stream.c	Sat Jan 23 12:21:07 2010 +0000
@@ -433,9 +433,7 @@
 void free_stream(stream_t *s){
 //  printf("\n*** free_stream() called ***\n");
 #ifdef CONFIG_STREAM_CACHE
-  if(s->cache_pid) {
     cache_uninit(s);
-  }
 #endif
   if(s->close) s->close(s);
   if(s->fd>0){