From b8be29fee61c46170dc087ee72b88a84ef9f8d21 Mon Sep 17 00:00:00 2001 From: Matthijs Mekking Date: Tue, 4 Feb 2020 11:00:58 +0100 Subject: [PATCH] Add a note on memory allocation isc__memalloc_t must deal with memory allocation failure and must never return NULL. --- lib/isc/mem.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/isc/mem.c b/lib/isc/mem.c index c65d9219d6..30399bf81f 100644 --- a/lib/isc/mem.c +++ b/lib/isc/mem.c @@ -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 *);