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

Function reftable_realloc

reftable/basics.c:27–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27void *reftable_realloc(void *p, size_t sz)
28{
29 if (!sz) {
30 reftable_free(p);
31 return NULL;
32 }
33
34 if (reftable_realloc_ptr)
35 return (*reftable_realloc_ptr)(p, sz);
36 return realloc(p, sz);
37}
38
39void reftable_free(void *p)
40{

Callers 2

reftable_alloc_growFunction · 0.85

Calls 1

reftable_freeFunction · 0.85

Tested by

no test coverage detected