1
This commit is contained in:
parent
99d7acc8ef
commit
a64d3645ba
4
f.c
4
f.c
@ -6,7 +6,7 @@ size_t free_counter;
|
|||||||
|
|
||||||
void * TEST_MALLOC(size_t size)
|
void * TEST_MALLOC(size_t size)
|
||||||
{
|
{
|
||||||
printf("malloc'ed %lu\n", size);
|
//printf("malloc'ed %lu\n", size);
|
||||||
|
|
||||||
malloc_counter += size;
|
malloc_counter += size;
|
||||||
return malloc(size);
|
return malloc(size);
|
||||||
@ -15,7 +15,7 @@ void * TEST_MALLOC(size_t size)
|
|||||||
void TEST_FREE(void *p)
|
void TEST_FREE(void *p)
|
||||||
{
|
{
|
||||||
size_t s = malloc_usable_size(p);
|
size_t s = malloc_usable_size(p);
|
||||||
printf("freed %lu\n", s);
|
//printf("freed %lu\n", s);
|
||||||
|
|
||||||
free_counter += s;
|
free_counter += s;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user