Lines Matching refs:szMalloc
23341 int szMalloc; /* Size of the zMalloc allocation */ member
34722 pMem->szMalloc = sqlite3DbMallocSize(pMem->db, pMem->z); in sqlite3VdbeMemTranslate()
82825 assert( (p->flags & MEM_Dyn)==0 || p->szMalloc==0 );
82859 assert( p->szMalloc==0
82861 && p->szMalloc<=sqlite3DbMallocSize(p->db,p->zMalloc))
82862 || p->szMalloc==sqlite3DbMallocSize(p->db,p->zMalloc));
82874 ((p->szMalloc>0 && p->z==p->zMalloc)? 1 : 0) +
82946 if( p->szMalloc>0 && p->z==p->zMalloc ){
82947 assert( p->enc==SQLITE_UTF8 || p->szMalloc >= ((p->n+1)&~1)+2 );
82948 assert( p->enc!=SQLITE_UTF8 || p->szMalloc >= p->n+1 );
83034 assert( pMem->szMalloc==0
83036 && pMem->szMalloc<=sqlite3DbMallocSize(pMem->db,pMem->zMalloc))
83037 || pMem->szMalloc==sqlite3DbMallocSize(pMem->db,pMem->zMalloc));
83038 if( pMem->szMalloc>0 && bPreserve && pMem->z==pMem->zMalloc ){
83048 if( pMem->szMalloc>0 ) sqlite3DbFreeNN(pMem->db, pMem->zMalloc);
83054 pMem->szMalloc = 0;
83057 pMem->szMalloc = sqlite3DbMallocSize(pMem->db, pMem->zMalloc);
83089 assert( (pMem->flags & MEM_Dyn)==0 || pMem->szMalloc==0 );
83090 if( pMem->szMalloc<szNew ){
83126 }else if( pMem->szMalloc >= pMem->n+1 ){
83165 if( pMem->szMalloc==0 || pMem->z!=pMem->zMalloc ){
83294 if( pMem->szMalloc>0 ) sqlite3DbFreeNN(pMem->db, pMem->zMalloc);
83362 if( p->szMalloc ){
83364 p->szMalloc = 0;
83381 if( VdbeMemDynamic(p) || p->szMalloc ){
83391 if( p->szMalloc ) vdbeMemClear(p);
83647 pMem->szMalloc = 0;
83915 pFrom->szMalloc = 0;
84014 pMem->szMalloc = sqlite3DbMallocSize(pMem->db, pMem->zMalloc);
86201 if( p->szMalloc ) sqlite3DbFree(db, p->zMalloc);
86977 p->szMalloc = 0;
87000 if( p->szMalloc ) sqlite3DbFree(db, p->zMalloc);
87026 }else if( p->szMalloc ){
87028 p->szMalloc = 0;
89077 pMem->szMalloc = 0;
89126 VVA_ONLY( mem1.szMalloc = 0; ) /* Only needed by assert() statements */
89181 assert( mem1.szMalloc==0 ); /* See comment below */
89199 assert( mem1.szMalloc==0 );
89583 VVA_ONLY( mem1.szMalloc = 0; ) /* Only needed by assert() statements */
89730 assert( mem1.szMalloc==0 ); /* See comment below */
89749 assert( mem1.szMalloc==0 );
90060 testcase( m.szMalloc!=0 );
93401 assert( pMem->szMalloc==0 || pMem->z==pMem->zMalloc );
93402 if( pMem->szMalloc<nByte ){
93403 if( pMem->szMalloc>0 ){
93408 pMem->szMalloc = 0;
93411 pMem->szMalloc = nByte;
94485 assert( pOut->szMalloc>0 && pOut->zMalloc==pOut->z );
94487 pOut->szMalloc = 0;
96253 if( pDest->szMalloc < len+2 ){
96716 if( nByte+nZero<=pOut->szMalloc ){