mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-19 11:13:09 +00:00
Fix checks for allocation debugging.
MALLOC_DEBUG should not be used to check if debugging is actually enabled, __AST_DEBUG_MALLOC should be used instead. MALLOC_DEBUG only indicates that debugging is requested, __AST_DEBUG_MALLOC indicates it is active. Change-Id: I3ce9cdb6ec91b74ee1302941328462231be1ea53
This commit is contained in:
@@ -53,7 +53,7 @@ ASTERISK_REGISTER_FILE()
|
||||
* ast_str_append_va(...)
|
||||
*/
|
||||
|
||||
#if (defined(MALLOC_DEBUG) && !defined(STANDALONE))
|
||||
#ifdef __AST_DEBUG_MALLOC
|
||||
int __ast_debug_str_helper(struct ast_str **buf, ssize_t max_len,
|
||||
int append, const char *fmt, va_list ap, const char *file, int lineno, const char *function)
|
||||
#else
|
||||
@@ -112,7 +112,7 @@ int __ast_str_helper(struct ast_str **buf, ssize_t max_len,
|
||||
}
|
||||
|
||||
if (
|
||||
#if (defined(MALLOC_DEBUG) && !defined(STANDALONE))
|
||||
#ifdef __AST_DEBUG_MALLOC
|
||||
_ast_str_make_space(buf, need, file, lineno, function)
|
||||
#else
|
||||
ast_str_make_space(buf, need)
|
||||
|
Reference in New Issue
Block a user