mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merge "MALLOC_DEBUG: Replace WRAP_LIBC_MALLOC with ASTMM_LIBC."
This commit is contained in:
@@ -91,7 +91,7 @@
|
||||
* $FreeBSD: src/bin/expr/expr.y,v 1.16 2000/07/22 10:59:36 se Exp $
|
||||
*/
|
||||
|
||||
#define WRAP_LIBC_MALLOC
|
||||
#define ASTMM_LIBC ASTMM_REDIRECT
|
||||
#include "asterisk.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
|
@@ -12,7 +12,7 @@
|
||||
* $FreeBSD: src/bin/expr/expr.y,v 1.16 2000/07/22 10:59:36 se Exp $
|
||||
*/
|
||||
|
||||
#define WRAP_LIBC_MALLOC
|
||||
#define ASTMM_LIBC ASTMM_REDIRECT
|
||||
#include "asterisk.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#define WRAP_LIBC_MALLOC
|
||||
#define ASTMM_LIBC ASTMM_REDIRECT
|
||||
#include "asterisk.h"
|
||||
|
||||
#line 2 "ast_expr2f.c"
|
||||
|
11
main/astmm.c
11
main/astmm.c
@@ -28,6 +28,7 @@
|
||||
<support_level>core</support_level>
|
||||
***/
|
||||
|
||||
#define ASTMM_LIBC ASTMM_IGNORE
|
||||
#include "asterisk.h"
|
||||
|
||||
#if defined(__AST_DEBUG_MALLOC)
|
||||
@@ -61,16 +62,6 @@ enum func_type {
|
||||
FUNC_ASPRINTF
|
||||
};
|
||||
|
||||
/* Undefine all our macros */
|
||||
#undef malloc
|
||||
#undef calloc
|
||||
#undef realloc
|
||||
#undef strdup
|
||||
#undef strndup
|
||||
#undef free
|
||||
#undef vasprintf
|
||||
#undef asprintf
|
||||
|
||||
#define FENCE_MAGIC 0xfeedbabe /*!< Allocated memory high/low fence overwrite check. */
|
||||
#define FREED_MAGIC 0xdeaddead /*!< Freed memory wipe filler. */
|
||||
#define MALLOC_FILLER 0x55 /*!< Malloced memory filler. Must not be zero. */
|
||||
|
@@ -26,7 +26,7 @@
|
||||
<support_level>core</support_level>
|
||||
***/
|
||||
|
||||
#define WRAP_LIBC_MALLOC
|
||||
#define ASTMM_LIBC ASTMM_REDIRECT
|
||||
#include "asterisk.h"
|
||||
|
||||
ASTERISK_REGISTER_FILE()
|
||||
|
Reference in New Issue
Block a user