Reallocate memory and zero it or panic */
| 259 | |
| 260 | /* Reallocate memory and zero it or panic */ |
| 261 | void *zrealloc(void *ptr, size_t size, enum MALLOC_CLASS /*mclass*/) { |
| 262 | ptr = ztryrealloc_usable(ptr, size, NULL); |
| 263 | if (!ptr && size != 0) zmalloc_oom_handler(size); |
| 264 | return ptr; |
| 265 | } |
| 266 | |
| 267 | /* Try Reallocating memory, and return NULL if failed. */ |
| 268 | void *ztryrealloc(void *ptr, size_t size) { |
no test coverage detected