[asterisk-dev] Locking in astmm.c

Kevin P. Fleming kpfleming at digium.com
Tue Jan 31 15:05:50 MST 2006


Matt Roth wrote:

> Does my change look safe, or am I introducing a race condition?

Short answer: don't touch it.

Long answer: this codes lives underneath ast_malloc() if MALLOC_DEBUG is 
defined, and should not ever call ast_malloc itself. It is _not_ called 
directly, and has no need for generating log messages about allocation 
failures, since its caller will do that.



More information about the asterisk-dev mailing list