mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +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:
@@ -907,7 +907,7 @@ void ast_category_destroy(struct ast_category *cat);
|
||||
struct ast_variable *ast_category_detach_variables(struct ast_category *cat);
|
||||
void ast_category_rename(struct ast_category *cat, const char *name);
|
||||
|
||||
#ifdef MALLOC_DEBUG
|
||||
#ifdef __AST_DEBUG_MALLOC
|
||||
struct ast_variable *_ast_variable_new(const char *name, const char *value, const char *filename, const char *file, const char *function, int lineno);
|
||||
#define ast_variable_new(a, b, c) _ast_variable_new(a, b, c, __FILE__, __PRETTY_FUNCTION__, __LINE__)
|
||||
#else
|
||||
|
Reference in New Issue
Block a user