Compare commits
No commits in common. "dcc9ae38c5d8f06d76d58c1c255d4e9f323ef1b5" and "67d20b46737a359c4a1294e297972e3775796f9d" have entirely different histories.
dcc9ae38c5
...
67d20b4673
3 changed files with 2 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
||||||
cmake_minimum_required(VERSION 3.7)
|
cmake_minimum_required(VERSION 3.7)
|
||||||
project(AnotherMemCheck)
|
project(AnotherMemCheck)
|
||||||
|
|
||||||
set(AnotherMemCheck_VERSION 2.1)
|
set(AnotherMemCheck_VERSION 2.0)
|
||||||
set(AnotherMemCheck_SOVERSION 2)
|
set(AnotherMemCheck_SOVERSION 2)
|
||||||
|
|
||||||
set(AnotherMemCheck_SOURCES
|
set(AnotherMemCheck_SOURCES
|
||||||
|
|
|
@ -1,10 +1,5 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## Verison 2.1
|
|
||||||
|
|
||||||
Previous implementation did not fully account for total size of a call to
|
|
||||||
calloc. This version should fix this.
|
|
||||||
|
|
||||||
## Version 2.0
|
## Version 2.0
|
||||||
|
|
||||||
Minor refactorings.
|
Minor refactorings.
|
||||||
|
|
|
@ -105,7 +105,7 @@ namespace SC_AM_Internal {
|
||||||
if (address != nullptr) {
|
if (address != nullptr) {
|
||||||
Malloced *data = reinterpret_cast<Malloced*>(real_malloc(sizeof(Malloced)));
|
Malloced *data = reinterpret_cast<Malloced*>(real_malloc(sizeof(Malloced)));
|
||||||
data->address = address;
|
data->address = address;
|
||||||
data->size = n * size;
|
data->size = size;
|
||||||
ListNode::add_to_list(malloced_list_tail, data);
|
ListNode::add_to_list(malloced_list_tail, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue