Try allocating memory, and return NULL if failed. */
| 123 | |
| 124 | /* Try allocating memory, and return NULL if failed. */ |
| 125 | void *ztrymalloc(size_t size) { |
| 126 | void *ptr = ztrymalloc_usable(size, NULL); |
| 127 | return ptr; |
| 128 | } |
| 129 | |
| 130 | /* Allocate memory or panic. |
| 131 | * '*usable' is set to the usable size if non NULL. */ |
no test coverage detected