Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: mempool - Centralize p_free() NULL pointer check
This changes the behavior of p_free(pool, some_null_pointer) slightly. datastack mempools: Previously, the datastack frame id was checked regardless of whether or not the pointer was NULL. Now, only non-NULL pointers perform this check. system mempools: Previously, the process would SIGSEGV if a NULL pointer was freed in a debug binary on a system with malloc_usable_size(). Now, no SIGSEGV occurs. allocfree, alloconly, and unsafe datastack: No change in behavior.
- Loading branch information