MCPcopy Create free account
hub / github.com/git/git / reftable_malloc

Function reftable_malloc

reftable/basics.c:18–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16static void (*reftable_free_ptr)(void *);
17
18void *reftable_malloc(size_t sz)
19{
20 if (!sz)
21 return NULL;
22 if (reftable_malloc_ptr)
23 return (*reftable_malloc_ptr)(sz);
24 return malloc(sz);
25}
26
27void *reftable_realloc(void *p, size_t sz)
28{

Callers 5

writer_index_hashFunction · 0.85
reftable_callocFunction · 0.85
reftable_strdupFunction · 0.85
flock_acquireFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected