Allocate memory and zero it or panic */
| 188 | |
| 189 | /* Allocate memory and zero it or panic */ |
| 190 | void *zcalloc(size_t size, enum MALLOC_CLASS /*mclass*/) { |
| 191 | void *ptr = ztrycalloc_usable(size, NULL); |
| 192 | if (!ptr) zmalloc_oom_handler(size); |
| 193 | return ptr; |
| 194 | } |
| 195 | |
| 196 | /* Try allocating memory, and return NULL if failed. */ |
| 197 | void *ztrycalloc(size_t size) { |
no test coverage detected