Branch: Tag:

1998-01-26

1998-01-26 20:01:58 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

many minor memory leaks fixed

Rev: NT/.cvsignore:1.3
Rev: src/array.c:1.23
Rev: src/dmalloc.h:1.2
Rev: src/dynamic_buffer.c:1.7
Rev: src/dynamic_buffer.h:1.5
Rev: src/dynamic_load.c:1.23
Rev: src/error.h:1.10
Rev: src/interpret.c:1.62
Rev: src/interpret.h:1.17
Rev: src/language.yacc:1.55
Rev: src/las.c:1.45
Rev: src/las.h:1.12
Rev: src/lex.c:1.41
Rev: src/main.c:1.37
Rev: src/main.h:1.5
Rev: src/modules/Gmp/mpz_glue.c:1.25
Rev: src/modules/Image/font.c:1.27
Rev: src/object.c:1.34
Rev: src/object.h:1.14
Rev: src/operators.c:1.23
Rev: src/pike_memory.c:1.5
Rev: src/pike_types.c:1.30
Rev: src/pike_types.h:1.8
Rev: src/program.c:1.55
Rev: src/program.h:1.28
Rev: src/stralloc.c:1.25
Rev: src/stralloc.h:1.13
Rev: src/svalue.h:1.10
Rev: src/threads.c:1.54

34:   string complex_free_buf(void);   void toss_buffer(dynamic_buffer *buf);   char *simple_free_buf(void); - struct pike_string *low_free_buf(dynamic_buffer *buf); - struct pike_string *free_buf(void); + struct pike_string *debug_low_free_buf(dynamic_buffer *buf); + struct pike_string *debug_free_buf(void);   char *make_buf_space(INT32 space);   void my_putchar(char b);   void my_binary_strcat(const char *b,INT32 l);   void my_strcat(const char *b);   void init_buf(void);   void init_buf_with_string(string s); - char *return_buf(void); + char *debug_return_buf(void);   /* Prototypes end here */      #ifdef DEBUG_MALLOC   #define initialize_buf(X) \    do { dynamic_buffer *b_=(X); debug_initialize_buf(b_); \    debug_malloc_update_location(b_->s.str,__FILE__,__LINE__); } while(0) -  + #define low_free_buf(X) \ +  ((struct pike_string *)debug_malloc_touch(debug_low_free_buf(X))) +  + #define free_buf() \ +  ((struct pike_string *)debug_malloc_touch(debug_free_buf())) +  + #define return_buf() \ +  ((char *)debug_malloc_touch(debug_return_buf())) +    #else   #define initialize_buf debug_initialize_buf -  + #define low_free_buf debug_low_free_buf + #define free_buf debug_free_buf + #define return_buf debug_return_buf   #endif      #endif