Reallocate memory or panic. * '*usable' is set to the usable size if non NULL. */
| 261 | /* Reallocate memory or panic. |
| 262 | * '*usable' is set to the usable size if non NULL. */ |
| 263 | void *zrealloc_usable(void *ptr, size_t size, size_t *usable) { |
| 264 | ptr = ztryrealloc_usable(ptr, size, usable); |
| 265 | if (!ptr && size != 0) zmalloc_oom_handler(size); |
| 266 | return ptr; |
| 267 | } |
| 268 | |
| 269 | /* Provide zmalloc_size() for systems where this function is not provided by |
| 270 | * malloc itself, given that in that case we store a header with this |
nothing calls this directly
no test coverage detected