summaryrefslogtreecommitdiffstats
path: root/src/H5FL.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-05-19 04:58:59 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-05-19 04:58:59 (GMT)
commit52d71bcd6f19c7b0adb6544f4c79df94eb1135e4 (patch)
treecc7b05a2d59865db11f02f409ffeadb52cb2afd1 /src/H5FL.c
parenteff3014d975a3118360fa38660af910af804cdcd (diff)
downloadhdf5-52d71bcd6f19c7b0adb6544f4c79df94eb1135e4.zip
hdf5-52d71bcd6f19c7b0adb6544f4c79df94eb1135e4.tar.gz
hdf5-52d71bcd6f19c7b0adb6544f4c79df94eb1135e4.tar.bz2
[svn-r13770] Description:
Clean up various memory leaks, etc. Tested on: FreeBSD/32 6.2 (duty)
Diffstat (limited to 'src/H5FL.c')
-rw-r--r--src/H5FL.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/H5FL.c b/src/H5FL.c
index 2059020..ee62f94 100644
--- a/src/H5FL.c
+++ b/src/H5FL.c
@@ -99,6 +99,10 @@ typedef struct H5FL_blk_gc_list_t {
static H5FL_blk_gc_list_t H5FL_blk_gc_head={0,NULL};
#ifdef H5FL_TRACK
+
+/* Extra headers needed */
+#include "H5CSprivate.h" /* Function stack */
+
/* Head of "outstanding allocations" list */
static H5FL_track_t *H5FL_out_head_g = NULL;
#endif /* H5FL_TRACK */
@@ -377,7 +381,7 @@ H5FL_reg_malloc(H5FL_reg_head_t *head H5FL_TRACK_PARAMS)
#ifdef H5FL_TRACK
/* Copy allocation location information */
- ((H5FL_track_t *)ret_value)->stack = H5MM_malloc(sizeof(H5CS_t));
+ ((H5FL_track_t *)ret_value)->stack = H5MM_calloc(sizeof(H5CS_t));
H5CS_copy_stack(((H5FL_track_t *)ret_value)->stack);
((H5FL_track_t *)ret_value)->file = H5MM_strdup(call_file);
((H5FL_track_t *)ret_value)->func = H5MM_strdup(call_func);
@@ -875,7 +879,7 @@ H5FL_blk_malloc(H5FL_blk_head_t *head, size_t size H5FL_TRACK_PARAMS)
#ifdef H5FL_TRACK
/* Copy allocation location information */
- ((H5FL_track_t *)ret_value)->stack = H5MM_malloc(sizeof(H5CS_t));
+ ((H5FL_track_t *)ret_value)->stack = H5MM_calloc(sizeof(H5CS_t));
H5CS_copy_stack(((H5FL_track_t *)ret_value)->stack);
((H5FL_track_t *)ret_value)->file = H5MM_strdup(call_file);
((H5FL_track_t *)ret_value)->func = H5MM_strdup(call_func);