From: Matthijs Mekking Date: Tue, 4 Feb 2020 10:00:58 +0000 (+0100) Subject: Add a note on memory allocation X-Git-Tag: v9.16.0~34^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8be29fee61c46170dc087ee72b88a84ef9f8d21;p=thirdparty%2Fbind9.git Add a note on memory allocation isc__memalloc_t must deal with memory allocation failure and must never return NULL. --- diff --git a/lib/isc/mem.c b/lib/isc/mem.c index c65d9219d6b..30399bf81f3 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 *);