Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
77
static void *xmalloc(size_t n) {
78
void *p = malloc(n ? n : 1);
79
if (!p) die(
"out of memory"
);
80
return p;
81
}
82
83
static void *xrealloc(void *p, size_t n) {
Callers
10
buf_reserve
Function · 0.70
tool_calls_push
Function · 0.70
chat_msg_add_tool_call_id
Function · 0.70
chat_msgs_push
Function · 0.70
tool_schema_order_prop_push
Function · 0.70
tool_schema_orders_push
Function · 0.70
stop_list_push
Function · 0.70
json_args_push
Function · 0.70
openai_tool_stream_id
Function · 0.70
anthropic_tool_stream_id
Function · 0.70
Calls
1
die
Function · 0.70
Tested by
no test coverage detected