mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 20:02:06 -04: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:
parent
2868eafc46
commit
b8be29fee6
1 changed files with 5 additions and 0 deletions
|
|
@ -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 *);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue