Lines Matching refs:zMalloc
12131 char *zMalloc; /* Dynamic buffer allocated by sqlite3_malloc() */
19717 pMem->zMalloc = pMem->z;
19868 assert( m.z==m.zMalloc );
54235 ((pMem->zMalloc && pMem->zMalloc==pMem->z) ? 1 : 0) +
54243 if( sqlite3DbMallocSize(pMem->db, pMem->zMalloc)<n ){
54244 if( preserve && pMem->z==pMem->zMalloc ){
54245 pMem->z = pMem->zMalloc = sqlite3DbReallocOrFree(pMem->db, pMem->z, n);
54248 sqlite3DbFree(pMem->db, pMem->zMalloc);
54249 pMem->zMalloc = sqlite3DbMallocRaw(pMem->db, n);
54253 if( pMem->z && preserve && pMem->zMalloc && pMem->z!=pMem->zMalloc ){
54254 memcpy(pMem->zMalloc, pMem->z, pMem->n);
54260 pMem->z = pMem->zMalloc;
54284 if( (f&(MEM_Str|MEM_Blob)) && pMem->z!=pMem->zMalloc ){
54416 sqlite3DbFree(pMem->db, pMem->zMalloc);
54426 ** does not free any Mem.zMalloc buffer.
54458 sqlite3DbFree(p->db, p->zMalloc);
54460 p->zMalloc = 0;
54716 pMem->zMalloc = sqlite3DbMallocRaw(db, 64);
54720 assert( pMem->zMalloc );
54721 pMem->u.pRowSet = sqlite3RowSetInit(db, pMem->zMalloc,
54722 sqlite3DbMallocSize(db, pMem->zMalloc));
54767 ** Size of struct Mem not including the Mem.zMalloc member.
54769 #define MEMCELLSIZE (size_t)(&(((Mem *)0)->zMalloc))
54826 pFrom->zMalloc = 0;
54898 pMem->zMalloc = pMem->z = (char *)z;
55922 sqlite3DbFree(db, p->zMalloc);
56304 sqlite3DbFree(db, p->zMalloc);
56325 }else if( p->zMalloc ){
56326 sqlite3DbFree(db, p->zMalloc);
56327 p->zMalloc = 0;
58111 pMem->zMalloc = 0;
58136 if( NEVER(pMem->zMalloc) ) sqlite3VdbeMemRelease(pMem);
58187 VVA_ONLY( mem1.zMalloc = 0; ) /* Only needed by assert() statements */
58220 assert( mem1.zMalloc==0 ); /* See comment below */
58248 assert( mem1.zMalloc==0 );
58342 testcase( m.zMalloc!=0 );
60591 char *zMalloc; /* Holding variable for allocated memory */
61327 assert( pOut->zMalloc==pOut->z );
61329 pOut->zMalloc = 0;
61414 char *zMalloc; /* Holding variable for allocated memory */
61433 u.ac.zMalloc = pOut->zMalloc;
61434 pOut->zMalloc = 0;
61436 pIn1->zMalloc = u.ac.zMalloc;
61803 u.ag.ctx.s.zMalloc = 0;
62750 if( u.am.sMem.zMalloc ){
62751 assert( u.am.sMem.z==u.am.sMem.zMalloc );
62757 u.am.pDest->zMalloc = u.am.sMem.zMalloc;
65679 u.cb.ctx.s.zMalloc = 0;
114687 int nMalloc; /* Size of malloc'd buffer at zMalloc */
114688 char *zMalloc; /* Malloc'd space (possibly) used for zTerm */
114711 int nMalloc; /* Size of malloc'd buffer at zMalloc */
114712 char *zMalloc; /* Malloc'd space (possibly) used for zTerm */
116139 char *zNew = sqlite3_realloc(pTree->zMalloc, nTerm*2);
116144 pTree->zMalloc = zNew;
116146 pTree->zTerm = pTree->zMalloc;
116182 pNew->zMalloc = pTree->zMalloc;
116184 pTree->zMalloc = 0;
116276 assert( pRight==0 || p->zMalloc==0 );
116277 sqlite3_free(p->zMalloc);
116406 char *zNew = sqlite3_realloc(pWriter->zMalloc, nTerm*2);
116411 pWriter->zMalloc = zNew;
116414 assert( pWriter->zTerm==pWriter->zMalloc );
116468 sqlite3_free(pWriter->zMalloc);