git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6904 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2007-12-19 21:13:09 +00:00
parent 80da2e371b
commit 2faabff764
3 changed files with 27 additions and 11 deletions

View File

@@ -269,9 +269,18 @@ extern int sqlite3_iLine; /* Line number for debug info */
#else
static inline void *zmalloc(size_t x)
{
void *z = malloc(x);
assert(z);
memset(z, 0, x);
return z;
}
#define ENTER_MALLOC 0
#define sqliteMalloc(x) sqlite3Malloc(x,1)
#define sqliteMallocRaw(x) sqlite3MallocRaw(x,1)
#define sqliteMalloc(x) zmalloc(x)//sqlite3Malloc(x,1)
#define sqliteMallocRaw(x) malloc(x)//sqlite3MallocRaw(x,1)
#define sqliteRealloc(x,y) sqlite3Realloc(x,y)
#define sqliteStrDup(x) sqlite3StrDup(x)
#define sqliteStrNDup(x,y) sqlite3StrNDup(x,y)