33d3adba3f
Cleanup of Stats struct
2024-11-12 16:10:10 +09:00
4d3d6c9168
Use atexit() instead of onexit()
2024-11-12 15:29:17 +09:00
c4f06b799e
Add back setting of member variable in init fn
2024-11-12 14:57:49 +09:00
e063957eb6
Initialize ptr in constructor of handler
2024-11-12 14:46:36 +09:00
394bfc8963
Use std::recursive_mutex instead of pthread_mutex
2024-11-12 14:43:57 +09:00
563d6ad570
Add support for realloc
2024-06-27 14:45:40 +09:00
23b851d8f3
Version 2.4, fixes
...
Fix free not actually calling real_free.
Fix free dereferencing null ptr.
TODO fix bug where tracked data is not correctly removed during free.
2024-06-27 14:00:39 +09:00
882732a3ad
Add ids to allocated memory to be printed later
2024-06-26 14:01:51 +09:00
c851ec6a07
Check for ANOTHER_MEMCHECK_QUIET env var, refactor
...
Now, if ANOTHER_MEMCHECK_QUIET environment variable is defined, do not
print output when malloc/calloc/free is called.
Minor refactoring: remove unused constexpr declarations in header.
Bump version to 2.2 .
Update Changelog.md .
2024-06-06 15:16:42 +09:00
0e2545ecea
Fix incorrect storing of size when using calloc
2024-06-04 15:54:45 +09:00
4d000a87e0
Use pthreads to mutex-lock malloc/calloc/free
2024-06-04 15:40:57 +09:00
eb716bf65a
Impl. checking calloc as well
2024-06-04 15:15:05 +09:00
0e447dc3be
Refactorings
...
Internally use doubly-linked list instead of singly-linked list. Also
minor fixes related to changing use to doubly-linked list.
Removed unnecessary comments.
Move list add/remove code to designated functions.
2024-06-04 15:08:33 +09:00
67a8e2452f
Minor refactoring and note in source code
2024-06-04 12:17:55 +09:00
7b0af73a06
Remove unnecessary comments
...
Kept in git history just in case.
2024-06-04 12:06:48 +09:00
5154281078
Init commit working "another_memcheck"
2024-06-04 11:59:36 +09:00