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

Function xmalloc

botlib.c:210–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208 * ========================================================================= */
209
210void *xmalloc(size_t size) {
211 void *p = malloc(size);
212 if (p == NULL) {
213 printf("Out of memory: malloc(%zu)", size);
214 exit(1);
215 }
216 return p;
217}
218
219void *xrealloc(void *ptr, size_t size) {
220 void *p = realloc(ptr,size);

Callers 1

sqlNextRowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected