MCPcopy Create free account
hub / github.com/antirez/ds4 / xmalloc

Function xmalloc

ds4_server.c:70–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 size_t len;
69 size_t cap;
70} buf;
71
72static void die(const char *msg) {
73 fprintf(stderr, "ds4-server: %s\n", msg);
74 exit(1);
75}
76
77static void *xmalloc(size_t n) {

Callers 10

xstrdupFunction · 0.70
xstrndupFunction · 0.70
json_raw_valueFunction · 0.70
server_logFunction · 0.70
tool_memory_put_lockedFunction · 0.70
read_http_requestFunction · 0.70
mainFunction · 0.70

Calls 1

dieFunction · 0.70

Tested by

no test coverage detected