Commit graph

10 commits

Author SHA1 Message Date
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