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

Function tal_reallocfn

devtools/onion.c:321–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321static void *tal_reallocfn(void *ptr, size_t size)
322{
323 if (!ptr)
324 return opt_allocfn(size);
325 tal_resize_(&ptr, 1, size, false);
326 return ptr;
327}
328
329static void tal_freefn(void *ptr)
330{

Callers

nothing calls this directly

Calls 2

tal_resize_Function · 0.85
opt_allocfnFunction · 0.70

Tested by

no test coverage detected