From: Matthijs Mekking Date: Tue, 4 Feb 2020 10:00:58 +0000 (+0100) Subject: Add a note on memory allocation X-Git-Tag: v9.14.11~20^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b9f9a0b528dd26bb094ab1ab8352f31d97dab67;p=thirdparty%2Fbind9.git Add a note on memory allocation isc__memalloc_t must deal with memory allocation failure and must never return NULL. (cherry picked from commit b8be29fee61c46170dc087ee72b88a84ef9f8d21) --- diff --git a/lib/isc/include/isc/mem.h b/lib/isc/include/isc/mem.h index 6f61c17505e..3cdc9376d9e 100644 --- a/lib/isc/include/isc/mem.h +++ b/lib/isc/include/isc/mem.h @@ -30,6 +30,11 @@ ISC_LANG_BEGINDECLS #define ISC_MEM_HIWATER 1 typedef void (*isc_mem_water_t)(void *, int); +/*% + * 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)(void *, size_t); typedef void (*isc_memfree_t)(void *, void *);