summaryrefslogtreecommitdiffstats
path: root/test/thread_arena.c
diff options
context:
space:
mode:
authorJason Evans <je@fb.com>2013-02-01 01:02:53 (GMT)
committerJason Evans <je@fb.com>2013-02-01 01:02:53 (GMT)
commit06912756cccd0064a9c5c59992dbac1cec68ba3f (patch)
tree0c77d4162bdbee5672a9c1cbce76755851d6b09a /test/thread_arena.c
parenta7a28c334e5526ba716bf6046eab8d60598183eb (diff)
downloadjemalloc-06912756cccd0064a9c5c59992dbac1cec68ba3f.zip
jemalloc-06912756cccd0064a9c5c59992dbac1cec68ba3f.tar.gz
jemalloc-06912756cccd0064a9c5c59992dbac1cec68ba3f.tar.bz2
Fix Valgrind integration.
Fix Valgrind integration to annotate all internally allocated memory in a way that keeps Valgrind happy about internal data structure access.
Diffstat (limited to 'test/thread_arena.c')
-rw-r--r--test/thread_arena.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/thread_arena.c b/test/thread_arena.c
index 2ffdb5e..c5a21fa 100644
--- a/test/thread_arena.c
+++ b/test/thread_arena.c
@@ -17,6 +17,7 @@ je_thread_start(void *arg)
malloc_printf("%s(): Error in malloc()\n", __func__);
return (void *)1;
}
+ free(p);
size = sizeof(arena_ind);
if ((err = mallctl("thread.arena", &arena_ind, &size, &main_arena_ind,