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

Function xmalloc

ccan/ccan/base64/test/run.c:348–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346}
347
348static void * xmalloc(size_t size)
349{
350 char * ret;
351 ret = malloc(size);
352 if (ret == NULL) {
353 perror("malloc");
354 abort();
355 }
356 return ret;
357}
358
359/* End of run.c test */

Callers 2

run.cFile · 0.85
mainFunction · 0.85

Calls 1

abortFunction · 0.85

Tested by

no test coverage detected