changeset 1642:78fa0713b823

free'ing priv struct
author arpi
date Wed, 22 Aug 2001 23:54:38 +0000
parents b7dae998505c
children 76835bed88ca
files stream.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/stream.c	Wed Aug 22 23:48:18 2001 +0000
+++ b/stream.c	Wed Aug 22 23:54:38 2001 +0000
@@ -158,11 +158,13 @@
   s->type=type;
   s->buf_pos=s->buf_len=0;
   s->start_pos=s->end_pos=0;
+  s->priv=NULL;
   stream_reset(s);
   return s;
 }
 
 void free_stream(stream_t *s){
+  if(s->priv) free(s->priv);
   free(s);
 }