aboutsummaryrefslogtreecommitdiffstats
path: root/src/pdumper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pdumper.c')
-rw-r--r--src/pdumper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pdumper.c b/src/pdumper.c
index 28529d63648..de9c06c9d2c 100644
--- a/src/pdumper.c
+++ b/src/pdumper.c
@@ -4785,15 +4785,15 @@ dump_mmap_contiguous_heap (struct dump_memory_map *maps, int nr_maps,
4785 Beware: the simple patch 2019-03-11T15:20:54Z!eggert@cs.ucla.edu 4785 Beware: the simple patch 2019-03-11T15:20:54Z!eggert@cs.ucla.edu
4786 is worse, as it sometimes frees this storage twice. */ 4786 is worse, as it sometimes frees this storage twice. */
4787 struct dump_memory_map_heap_control_block *cb = calloc (1, sizeof (*cb)); 4787 struct dump_memory_map_heap_control_block *cb = calloc (1, sizeof (*cb));
4788
4789 char *mem;
4790 if (!cb) 4788 if (!cb)
4791 goto out; 4789 goto out;
4790 __lsan_ignore_object (cb);
4791
4792 cb->refcount = 1; 4792 cb->refcount = 1;
4793 cb->mem = malloc (total_size); 4793 cb->mem = malloc (total_size);
4794 if (!cb->mem) 4794 if (!cb->mem)
4795 goto out; 4795 goto out;
4796 mem = cb->mem; 4796 char *mem = cb->mem;
4797 for (int i = 0; i < nr_maps; ++i) 4797 for (int i = 0; i < nr_maps; ++i)
4798 { 4798 {
4799 struct dump_memory_map *map = &maps[i]; 4799 struct dump_memory_map *map = &maps[i];