Lines Matching defs:zMalloc

14040   char *zMalloc;      /* Dynamic buffer allocated by sqlite3_malloc() */
22028 pMem->zMalloc = pMem->z;
60877 ** (1) Memory in Mem.zMalloc and managed by the Mem object
60884 ((p->z==p->zMalloc)? 1 : 0) +
60953 if( pMem->zMalloc==0 || sqlite3DbMallocSize(pMem->db, pMem->zMalloc)<n ){
60955 if( bPreserve && pMem->z==pMem->zMalloc ){
60956 pMem->z = pMem->zMalloc = sqlite3DbReallocOrFree(pMem->db, pMem->z, n);
60959 sqlite3DbFree(pMem->db, pMem->zMalloc);
60960 pMem->zMalloc = sqlite3DbMallocRaw(pMem->db, n);
60962 if( pMem->zMalloc==0 ){
60970 if( pMem->z && bPreserve && pMem->z!=pMem->zMalloc ){
60971 memcpy(pMem->zMalloc, pMem->z, pMem->n);
60978 pMem->z = pMem->zMalloc;
60998 if( (f&(MEM_Str|MEM_Blob)) && pMem->z!=pMem->zMalloc ){
61130 sqlite3DbFree(pMem->db, pMem->zMalloc);
61140 ** does not free any Mem.zMalloc buffer.
61168 if( p->zMalloc ){
61169 sqlite3DbFree(p->db, p->zMalloc);
61170 p->zMalloc = 0;
61416 pMem->zMalloc = sqlite3DbMallocRaw(db, 64);
61420 assert( pMem->zMalloc );
61421 pMem->u.pRowSet = sqlite3RowSetInit(db, pMem->zMalloc,
61422 sqlite3DbMallocSize(db, pMem->zMalloc));
61467 ** Size of struct Mem not including the Mem.zMalloc member.
61469 #define MEMCELLSIZE offsetof(Mem,zMalloc)
61527 pFrom->zMalloc = 0;
61599 pMem->zMalloc = pMem->z = (char *)z;
62189 sqlite3DbFree(db, aMem[i].zMalloc);
62935 sqlite3DbFree(db, p->zMalloc);
63468 sqlite3DbFree(db, p->zMalloc);
63494 }else if( p->zMalloc ){
63495 sqlite3DbFree(db, p->zMalloc);
63496 p->zMalloc = 0;
65371 pMem->zMalloc = 0;
65406 VVA_ONLY( mem1.zMalloc = 0; ) /* Only needed by assert() statements */
65449 assert( mem1.zMalloc==0 ); /* See comment below */
65462 assert( mem1.zMalloc==0 );
65695 VVA_ONLY( mem1.zMalloc = 0; ) /* Only needed by assert() statements */
65820 assert( mem1.zMalloc==0 ); /* See comment below */
65833 assert( mem1.zMalloc==0 );
66126 testcase( m.zMalloc!=0 );
68083 ** converts an MEM_Ephem string into a string with P.z==P.zMalloc.
69017 assert( pOut->zMalloc==pOut->z );
69019 pOut->zMalloc = 0;
69139 char *zMalloc; /* Holding variable for allocated memory */
69158 zMalloc = pOut->zMalloc;
69167 pIn1->zMalloc = zMalloc;
69562 pOut->zMalloc = 0;
70546 sMem.zMalloc = 0;
70562 if( sMem.zMalloc ){
70563 assert( sMem.z==sMem.zMalloc );
70569 pDest->zMalloc = sMem.zMalloc;
73689 ctx.s.zMalloc = 0;
136922 int nMalloc; /* Size of malloc'd buffer at zMalloc */
136923 char *zMalloc; /* Malloc'd space (possibly) used for zTerm */
136955 int nMalloc; /* Size of malloc'd buffer at zMalloc */
136956 char *zMalloc; /* Malloc'd space (possibly) used for zTerm */
138762 char *zNew = sqlite3_realloc(pTree->zMalloc, nTerm*2);
138767 pTree->zMalloc = zNew;
138769 pTree->zTerm = pTree->zMalloc;
138805 pNew->zMalloc = pTree->zMalloc;
138807 pTree->zMalloc = 0;
138899 assert( pRight==0 || p->zMalloc==0 );
138900 sqlite3_free(p->zMalloc);
139033 char *zNew = sqlite3_realloc(pWriter->zMalloc, nTerm*2);
139038 pWriter->zMalloc = zNew;
139041 assert( pWriter->zTerm==pWriter->zMalloc );
139096 sqlite3_free(pWriter->zMalloc);