diff options
author | 2016-10-10 14:17:42 -0700 | |
---|---|---|
committer | 2016-10-10 14:17:42 -0700 | |
commit | 7f6b0e7d7ad270074d8662c753f2bffe6762061c (patch) | |
tree | f06ed90065734a9e3e46f44733f6d74dee8cbaf6 /include | |
parent | c99945e44ce40e52883c3c68cdb783eb395f9a03 (diff) | |
parent | d3ee0d5c76626849756e1bff9ffb23de30706c7e (diff) |
Merge branch 'direct-calls' into buffer_pools_for_realsies
Diffstat (limited to 'include')
-rw-r--r-- | include/grpc/support/alloc.h | 6 |
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); |