MCPcopy 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
76void* wrap64_malloc(int size)
77{
78 uint64_t *p = (uint64_t*)malloc(size + 8);
79 *p = size;
80 ++p;
81 return p;
82}
83
84void wrap64_free(void *p)
85{

Callers 1

doitFunction · 0.85

Calls 1

mallocFunction · 0.70

Tested by

no test coverage detected