Reallocate memory and zero it or panic */
| 247 | |
| 248 | /* Reallocate memory and zero it or panic */ |
| 249 | void *zrealloc(void *ptr, size_t size) { |
| 250 | ptr = ztryrealloc_usable(ptr, size, NULL); |
| 251 | if (!ptr && size != 0) zmalloc_oom_handler(size); |
| 252 | return ptr; |
| 253 | } |
| 254 | |
| 255 | /* Try Reallocating memory, and return NULL if failed. */ |
| 256 | void *ztryrealloc(void *ptr, size_t size) { |
no test coverage detected