# HG changeset patch # User arpi # Date 998524478 0 # Node ID 78fa0713b8230837a323d9a94a17766ee0ce9833 # Parent b7dae998505c528dfb1fee4a72a7ab30de64f302 free'ing priv struct diff -r b7dae998505c -r 78fa0713b823 stream.c --- 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); }