diff --git a/src/another_memcheck.cc b/src/another_memcheck.cc index 5286495..7e7d4ec 100644 --- a/src/another_memcheck.cc +++ b/src/another_memcheck.cc @@ -105,7 +105,7 @@ namespace SC_AM_Internal { if (address != nullptr) { Malloced *data = reinterpret_cast(real_malloc(sizeof(Malloced))); data->address = address; - data->size = size; + data->size = n * size; ListNode::add_to_list(malloced_list_tail, data); }