mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6904 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user