changeset 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 c74a5f8ffab3
children 48c51ebbe421
files stream/stream.c
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
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){