Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LouisBrunner/valgrind-macos
/ wrap64_malloc
Function
wrap64_malloc
memcheck/tests/leak_cpp_interior.cpp:76–82 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
74
};
75
76
void* wrap64_malloc(int size)
77
{
78
uint64_t *p = (uint64_t*)malloc(size + 8);
79
*p = size;
80
++p;
81
return p;
82
}
83
84
void wrap64_free(void *p)
85
{
Callers
1
doit
Function · 0.85
Calls
1
malloc
Function · 0.70
Tested by
no test coverage detected