MCPcopy Create free account
hub / github.com/containers/bubblewrap / xrealloc

Function xrealloc

utils.c:165–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void *
166xrealloc (void *ptr, size_t size)
167{
168 void *res;
169
170 assert (size != 0);
171
172 res = realloc (ptr, size);
173
174 if (res == NULL)
175 die_oom ();
176 return res;
177}
178
179char *
180xstrdup (const char *str)

Callers 5

load_file_dataFunction · 0.85
readlink_mallocFunction · 0.85
strappendFunction · 0.85
strappendfFunction · 0.85

Calls 1

die_oomFunction · 0.85

Tested by

no test coverage detected