2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

Add a note on memory allocation

isc__memalloc_t must deal with memory allocation failure
and must never return NULL.
This commit is contained in:
Matthijs Mekking 2020-02-04 11:00:58 +01:00 committed by Ondřej Surý
parent 2868eafc46
commit b8be29fee6

View File

@ -126,6 +126,11 @@ static isc_mutex_t contextslock;
*/
static uint64_t totallost;
/*%
* Memory allocation and free function definitions.
* isc__memalloc_t must deal with memory allocation failure
* and must never return NULL.
*/
typedef void * (*isc__memalloc_t)(size_t);
typedef void (*isc__memfree_t)(void *);