MCPcopy Index your code
hub / github.com/antirez/botlib / xrealloc

Function xrealloc

botlib.c:219–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219void *xrealloc(void *ptr, size_t size) {
220 void *p = realloc(ptr,size);
221 if (p == NULL) {
222 printf("Out of memory: realloc(%zu)", size);
223 exit(1);
224 }
225 return p;
226}
227
228void xfree(void *ptr) {
229 free(ptr);

Callers 1

botProcessUpdatesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected