MCPcopy Create free account
hub / github.com/antirez/smallchat / chatRealloc

Function chatRealloc

chatlib.c:146–153  ·  view source on GitHub ↗

Also aborting realloc(). */

Source from the content-addressed store, hash-verified

144
145/* Also aborting realloc(). */
146void *chatRealloc(void *ptr, size_t size) {
147 ptr = realloc(ptr,size);
148 if (ptr == NULL) {
149 perror("Out of memory");
150 exit(1);
151 }
152 return ptr;
153}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected