aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-10-10 14:17:42 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-10-10 14:17:42 -0700
commit7f6b0e7d7ad270074d8662c753f2bffe6762061c (patch)
treef06ed90065734a9e3e46f44733f6d74dee8cbaf6 /include
parentc99945e44ce40e52883c3c68cdb783eb395f9a03 (diff)
parentd3ee0d5c76626849756e1bff9ffb23de30706c7e (diff)
Merge branch 'direct-calls' into buffer_pools_for_realsies
Diffstat (limited to 'include')
-rw-r--r--include/grpc/support/alloc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/grpc/support/alloc.h b/include/grpc/support/alloc.h
index 327a9ff9f0..7209bec014 100644
--- a/include/grpc/support/alloc.h
+++ b/include/grpc/support/alloc.h
@@ -48,7 +48,11 @@ typedef struct gpr_allocation_functions {
void (*free_fn)(void *ptr);
} gpr_allocation_functions;
-/* malloc, never returns NULL */
+/* malloc.
+ * If size==0, always returns NULL. Otherwise this function never returns NULL.
+ * The pointer returned is suitably aligned for any kind of variable it could
+ * contain.
+ */
GPRAPI void *gpr_malloc(size_t size);
/* free */
GPRAPI void gpr_free(void *ptr);