changeset 30352:dff74677e2fd

Zero freed pointers.
author reimar
date Sat, 23 Jan 2010 10:53:28 +0000
parents b985db55e78a
children 3c131287a33e
files stream/cache2.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/stream/cache2.c	Sat Jan 23 10:50:50 2010 +0000
+++ b/stream/cache2.c	Sat Jan 23 10:53:28 2010 +0000
@@ -292,6 +292,7 @@
   kill(s->cache_pid,SIGKILL);
   waitpid(s->cache_pid,NULL,0);
 #endif
+    s->cache_pid = 0;
   }
   if(!c) return;
 #if defined(__MINGW32__) || defined(PTHREAD_CACHE) || defined(__OS2__)
@@ -302,6 +303,8 @@
   shmem_free(c->buffer,c->buffer_size);
   shmem_free(s->cache_data,sizeof(cache_vars_t));
 #endif
+  c->buffer = NULL;
+  s->cache_data = NULL;
 }
 
 static void exit_sighandler(int x){