Branch: Tag:

2002-10-10

2002-10-10 10:53:46 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed minor leak.

Rev: src/dynamic_buffer.c:1.20

2:   ||| This file is part of Pike. For copyright information see COPYRIGHT.   ||| Pike is distributed under GPL, LGPL and MPL. See the file COPYING   ||| for more information. - ||| $Id: dynamic_buffer.c,v 1.19 2002/10/08 23:31:23 nilsson Exp $ + ||| $Id: dynamic_buffer.c,v 1.20 2002/10/10 10:53:46 grubba Exp $   \*/   /**/   
12:   #include "pike_error.h"   #include "pike_memory.h"    - RCSID("$Id: dynamic_buffer.c,v 1.19 2002/10/08 23:31:23 nilsson Exp $"); + RCSID("$Id: dynamic_buffer.c,v 1.20 2002/10/10 10:53:46 grubba Exp $");      static dynamic_buffer buff;   
132:   PMOD_EXPORT void my_putchar(char b) { low_my_putchar(b,&buff); }   PMOD_EXPORT void my_binary_strcat(const char *b, ptrdiff_t l) { low_my_binary_strcat(b,l,&buff); }   PMOD_EXPORT void my_strcat(const char *b) { my_binary_strcat(b,strlen(b)); } - PMOD_EXPORT void initialize_global_buf(void) { initialize_buf(&buff); } + PMOD_EXPORT void initialize_global_buf(void) { buff.s.str = NULL; }   PMOD_EXPORT void init_buf(void) { low_reinit_buf(&buff); }   PMOD_EXPORT void init_buf_with_string(string s) { low_init_buf_with_string(s,&buff); }   PMOD_EXPORT char *debug_return_buf(void)