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

Function xrealloc

ds4_server.c:76–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 exit(1);
75}
76
77static void *xmalloc(size_t n) {
78 void *p = malloc(n ? n : 1);
79 if (!p) die("out of memory");
80 return p;
81}
82
83static void *xrealloc(void *p, size_t n) {

Callers 10

buf_reserveFunction · 0.70
tool_calls_pushFunction · 0.70
chat_msgs_pushFunction · 0.70
tool_schema_orders_pushFunction · 0.70
stop_list_pushFunction · 0.70
json_args_pushFunction · 0.70
openai_tool_stream_idFunction · 0.70
anthropic_tool_stream_idFunction · 0.70

Calls 1

dieFunction · 0.70

Tested by

no test coverage detected