Reallocate memory or panic. * '*usable' is set to the usable size if non NULL. */
| 273 | /* Reallocate memory or panic. |
| 274 | * '*usable' is set to the usable size if non NULL. */ |
| 275 | void *zrealloc_usable(void *ptr, size_t size, size_t *usable) { |
| 276 | ptr = ztryrealloc_usable(ptr, size, usable); |
| 277 | if (!ptr && size != 0) zmalloc_oom_handler(size); |
| 278 | return ptr; |
| 279 | } |
| 280 | |
| 281 | /* Provide zmalloc_size() for systems where this function is not provided by |
| 282 | * malloc itself, given that in that case we store a header with this |
nothing calls this directly
no test coverage detected