MCPcopy Create free account
hub / github.com/ElementsProject/lightning / tal_reallocfn

Function tal_reallocfn

common/configdir.c:42–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42static void *tal_reallocfn(void *ptr, size_t size)
43{
44 if (!ptr)
45 return opt_allocfn(size);
46 tal_resize_(&ptr, 1, size, false);
47 return ptr;
48}
49
50static void tal_freefn(void *ptr)
51{

Callers

nothing calls this directly

Calls 2

tal_resize_Function · 0.85
opt_allocfnFunction · 0.70

Tested by

no test coverage detected