Skip to content
Snippets Groups Projects
Commit 2d89ac44 authored by jboeuf's avatar jboeuf Committed by GitHub
Browse files

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.
parents 110dae8b d6547f45
No related branches found
No related tags found
No related merge requests found
......@@ -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. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment