]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add a note on memory allocation
authorMatthijs Mekking <matthijs@isc.org>
Tue, 4 Feb 2020 10:00:58 +0000 (11:00 +0100)
committerOndřej Surý <ondrej@isc.org>
Tue, 4 Feb 2020 10:09:22 +0000 (11:09 +0100)
isc__memalloc_t must deal with memory allocation failure
and must never return NULL.

lib/isc/mem.c

index c65d9219d6bdc656cd9eea7865c963c57dedd8a3..30399bf81f3e5549767543524ebc01a32e14f56a 100644 (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 *);