Merge pull request #10633 from jboeuf/gpr_free_never_fails_on_null_input

Making sure that gpr_free is a no-op for NULL input.
pull/10405/head
jboeuf 8 years ago committed by GitHub
commit 2d89ac4429
  1. 3
      include/grpc/support/alloc.h

@ -68,7 +68,8 @@ GPRAPI void gpr_free_aligned(void *ptr);
/** Request the family of allocation functions in \a functions be used. NOTE
* that this request will be honored in a *best effort* basis and that no
* guarantees are made about the default functions (eg, malloc) being called. */
* guarantees are made about the default functions (eg, malloc) being called.
* The functions.free_fn implementation must be a no-op for NULL input. */
GPRAPI void gpr_set_allocation_functions(gpr_allocation_functions functions);
/** Return the family of allocation functions currently in effect. */

Loading…
Cancel
Save