Try allocating memory, and return NULL if failed. */
| 135 | |
| 136 | /* Try allocating memory, and return NULL if failed. */ |
| 137 | void *ztrymalloc(size_t size) { |
| 138 | void *ptr = ztrymalloc_usable(size, NULL); |
| 139 | return ptr; |
| 140 | } |
| 141 | |
| 142 | /* Allocate memory or panic. |
| 143 | * '*usable' is set to the usable size if non NULL. */ |
no test coverage detected