Lines Matching refs:szMalloc
23828 int szMalloc; /* Size of the zMalloc allocation */ member
35322 pMem->szMalloc = sqlite3DbMallocSize(pMem->db, pMem->z); in sqlite3VdbeMemTranslate()
83879 assert( (p->flags & MEM_Dyn)==0 || p->szMalloc==0 );
83913 assert( p->szMalloc==0
83915 && p->szMalloc<=sqlite3DbMallocSize(p->db,p->zMalloc))
83916 || p->szMalloc==sqlite3DbMallocSize(p->db,p->zMalloc));
83928 ((p->szMalloc>0 && p->z==p->zMalloc)? 1 : 0) +
84000 if( p->szMalloc>0 && p->z==p->zMalloc ){
84001 assert( p->enc==SQLITE_UTF8 || p->szMalloc >= ((p->n+1)&~1)+2 );
84002 assert( p->enc!=SQLITE_UTF8 || p->szMalloc >= p->n+1 );
84088 assert( pMem->szMalloc==0
84090 && pMem->szMalloc<=sqlite3DbMallocSize(pMem->db,pMem->zMalloc))
84091 || pMem->szMalloc==sqlite3DbMallocSize(pMem->db,pMem->zMalloc));
84092 if( pMem->szMalloc>0 && bPreserve && pMem->z==pMem->zMalloc ){
84102 if( pMem->szMalloc>0 ) sqlite3DbFreeNN(pMem->db, pMem->zMalloc);
84108 pMem->szMalloc = 0;
84111 pMem->szMalloc = sqlite3DbMallocSize(pMem->db, pMem->zMalloc);
84143 assert( (pMem->flags & MEM_Dyn)==0 || pMem->szMalloc==0 );
84144 if( pMem->szMalloc<szNew ){
84180 }else if( pMem->szMalloc >= pMem->n+1 ){
84219 if( pMem->szMalloc==0 || pMem->z!=pMem->zMalloc ){
84348 if( pMem->szMalloc>0 ) sqlite3DbFreeNN(pMem->db, pMem->zMalloc);
84416 if( p->szMalloc ){
84418 p->szMalloc = 0;
84435 if( VdbeMemDynamic(p) || p->szMalloc ){
84445 if( p->szMalloc ) vdbeMemClear(p);
84701 pMem->szMalloc = 0;
84972 pFrom->szMalloc = 0;
85071 pMem->szMalloc = sqlite3DbMallocSize(pMem->db, pMem->zMalloc);
87264 if( p->szMalloc ) sqlite3DbFree(db, p->zMalloc);
88052 p->szMalloc = 0;
88077 if( p->szMalloc ) sqlite3DbFree(db, p->zMalloc);
88103 }else if( p->szMalloc ){
88105 p->szMalloc = 0;
90159 pMem->szMalloc = 0;
90208 VVA_ONLY( mem1.szMalloc = 0; ) /* Only needed by assert() statements */
90263 assert( mem1.szMalloc==0 ); /* See comment below */
90281 assert( mem1.szMalloc==0 );
90658 VVA_ONLY( mem1.szMalloc = 0; ) /* Only needed by assert() statements */
90805 assert( mem1.szMalloc==0 ); /* See comment below */
90824 assert( mem1.szMalloc==0 );
91135 testcase( m.szMalloc!=0 );
94637 assert( pMem->szMalloc==0 || pMem->z==pMem->zMalloc );
94638 if( pMem->szMalloc<nByte ){
94639 if( pMem->szMalloc>0 ){
94644 pMem->szMalloc = 0;
94647 pMem->szMalloc = (int)nByte;
95734 assert( pOut->szMalloc>0 && pOut->zMalloc==pOut->z );
95736 pOut->szMalloc = 0;
97510 if( pDest->szMalloc < len+2 ){
97973 if( nByte+nZero<=pOut->szMalloc ){