2000-12-01
2000-12-01 17:43:28 by Henrik Grubbström (Grubba) <grubba@grubba.org>
-
46563d97f30f7816baaa1ad4d5a665411a817fa6
(10 lines)
(+9/-1)
[
Show
| Annotate
]
Branch: 7.9
Fixed DEBUG_MALLOC bug.
Rev: src/stralloc.c:1.110
26:
#define HUGE HUGE_VAL
#endif /*!HUGE*/
- RCSID("$Id: stralloc.c,v 1.109 2000/12/01 08:09:55 hubbe Exp $");
+ RCSID("$Id: stralloc.c,v 1.110 2000/12/01 17:43:28 grubba Exp $");
#define BEGIN_HASH_SIZE 997
#define MAX_AVG_LINK_LENGTH 3
1682: Inside #if defined(PIKE_DEBUG) && defined(DEBUG_MALLOC)
}
}
#endif
+
for(e=0;e<htable_size;e++)
{
for(s=base_table[e];s;s=next)
1698:
free((char *)base_table);
base_table=0;
num_strings=0;
+
+ #ifdef DEBUG_MALLOC
+ free_all_short_pike_string0_blocks();
+ free_all_short_pike_string1_blocks();
+ free_all_short_pike_string2_blocks();
+ #endif DEBUG_MALLOC
}
void count_memory_in_strings(INT32 *num, INT32 *size)