Lines Matching refs:sqlite3_malloc

1427 ** from [sqlite3_malloc()] and passed back through the 5th parameter.
2006 ** [sqlite3_malloc()] and the result is stored in the char* variable
2066 ** written into memory obtained from [sqlite3_malloc()]. The caller should
2704 ** Every memory allocation request coming in through [sqlite3_malloc()]
2865 ** to satisfy page cache needs, falling back to [sqlite3_malloc()] if
2870 ** from [sqlite3_malloc()] sufficient for N cache lines if N is positive or
2873 ** allocation, then SQLite goes to [sqlite3_malloc()] separately for each
3146 ** lookaside buffer itself using [sqlite3_malloc()]. ^The second argument is the
3820 ** [sqlite3_malloc()] happens within sqlite3_get_table(), the calling
3895 ** ^The sqlite3_malloc() routine returns a pointer to a block
3897 ** ^If sqlite3_malloc() is unable to obtain sufficient free
3899 ** sqlite3_malloc() is zero or negative then sqlite3_malloc() returns
3903 ** sqlite3_malloc(N) except that N is an unsigned 64-bit integer instead
3907 ** by sqlite3_malloc() or sqlite3_realloc() releases that memory so
3915 ** was not obtained from sqlite3_malloc() or sqlite3_realloc().
3921 ** sqlite3_malloc(N).
3937 ** ^If X is a memory allocation previously obtained from sqlite3_malloc(),
3947 ** ^The memory returned by sqlite3_malloc(), sqlite3_realloc(),
3955 ** invocation of [sqlite3_malloc()] or [sqlite3_realloc()] that have
3962 SQLITE_API void *sqlite3_malloc(int);
3973 ** of the [sqlite3_malloc()], [sqlite3_free()], and [sqlite3_realloc()]
3982 ** added by SQLite in its implementation of [sqlite3_malloc()],
3984 ** routines that [sqlite3_malloc()] may call.
5205 ** is obtained from [sqlite3_malloc()] and must be free by the application
5600 ** ^If sqlite3_malloc() fails during the processing of either routine
6802 ** from [sqlite3_malloc()] before it returns.
7084 ** it to point to memory obtained from [sqlite3_malloc]. ^Furthermore,
7087 ** [sqlite3_malloc] and the pragma may attempt to free that memory
7090 ** made NULL or made to point to memory obtained from [sqlite3_malloc]
7141 ** it to point to memory obtained from [sqlite3_malloc]. ^Furthermore,
7144 ** [sqlite3_malloc] and the pragma may attempt to free that memory
7147 ** made NULL or made to point to memory obtained from [sqlite3_malloc]
7160 ** a non-NULL value will be copied into memory obtained from [sqlite3_malloc]
7695 ** obtained from [sqlite3_malloc()]. The calling function
7998 char *idxStr; /* String, possibly obtained from sqlite3_malloc */
8642 ** xMutexInit() must not use SQLite memory allocation ([sqlite3_malloc()]
8712 #define SQLITE_MUTEX_STATIC_MEM 3 /* sqlite3_malloc() */
9075 ** using [sqlite3_malloc()], either directly or indirectly. The
9076 ** figure includes calls made to [sqlite3_malloc()] by the application
9084 ** handed to [sqlite3_malloc()] or [sqlite3_realloc()] (or their
9103 ** buffer and where forced to overflow to [sqlite3_malloc()]. The
12548 ** a pointer to a single large buffer allocated using sqlite3_malloc().
16624 ** sqlite3_malloc() to obtain space for the file-handle structure.
16865 u8 bMalloced; /* True if pStart obtained from sqlite3_malloc() */
23582 void *p = sqlite3_malloc(10);
25188 return sqlite3_malloc(nBytes);
27878 ** Allocate memory. This routine is like sqlite3_malloc() except that it
27888 ** this amount. The only way to reach the limit is with sqlite3_malloc() */
27906 SQLITE_API void *sqlite3_malloc(int n){
27932 ** sqlite3Malloc() or sqlite3_malloc().
28410 ** returning control to the user) that has called sqlite3_malloc or
29474 ** sqlite3_malloc() fails to provide space for a real one. This
29595 ** Print into memory obtained from sqlite3_malloc(). Omit the internal
29619 ** Print into memory obtained from sqlite3_malloc()(). Omit the internal
31199 ** from sqlite3_malloc().
31411 ** Memory to hold the UTF-8 string is obtained from sqlite3_malloc and must
33295 ** The hash table might fail to resize if sqlite3_malloc() fails or
40350 zDel = sqlite3_malloc(nOut);
40862 ** sqlite3_malloc) and open the file named "path" in the file descriptor.
43782 ** Space to hold the returned string is obtained from sqlite3_malloc().
43808 ** Space to hold the returned string is obtained from sqlite3_malloc().
43835 ** Space to hold the returned string is obtained from sqlite3_malloc().
43864 ** Space to hold the returned string is obtained from sqlite3_malloc().
43891 ** Space to hold the returned string is obtained from sqlite3_malloc().
43909 ** Space to hold the returned string is obtained from sqlite3_malloc().
54658 ** sqlite3_malloc() and pointed to by zSuperJournal. Also obtain
62706 void *pBuf1 = sqlite3_malloc(szPage);
62707 void *pBuf2 = sqlite3_malloc(szPage);
63316 aBuf = sqlite3_malloc(szPage + WAL_FRAME_HDRSIZE);
63815 pRet = (WalIndexHdr*)sqlite3_malloc(sizeof(WalIndexHdr));
78848 ** The zWhere string must have been obtained from sqlite3_malloc().
79646 ** the string is made into memory obtained from sqlite3_malloc().
83523 ** in memory obtained from sqlite3_malloc) into a Vdbe.zErrMsg (text stored
83962 pNew = sqlite3_malloc( sizeof(*pNew) );
85385 ** obtained from sqlite3_malloc(). The caller is responsible for
97601 pNew = sqlite3_malloc( sizeof(*pNew) );
97626 pCur = sqlite3_malloc( sizeof(*pCur) );
98169 FileChunk *pNew = sqlite3_malloc(fileChunkSize(p->nChunkSize));
125829 #define sqlite3_malloc sqlite3_api->malloc
126247 sqlite3_malloc,
129893 pTab = (PragmaVtab*)sqlite3_malloc(sizeof(PragmaVtab));
129966 pCsr = (PragmaVtabCursor*)sqlite3_malloc(sizeof(*pCsr));
163363 ** memory obtained from sqlite3_malloc() and to make *pzErrMsg point to that
164458 ** to be NULL or point to memory that was obtained from sqlite3_malloc(),
164799 ** space for the lookaside memory is obtained from sqlite3_malloc().
170093 ** The aMI array is allocated using sqlite3_malloc(). It should be freed
170844 ** The pointer returned points to memory obtained from sqlite3_malloc(). It
170882 ** The pointer returned points to a buffer allocated by sqlite3_malloc(). It
170939 ** The pointer returned points to a buffer allocated by sqlite3_malloc(). It
171565 char **pzErr /* OUT: sqlite3_malloc'd error message */
171575 char **pzErr /* OUT: sqlite3_malloc'd error message */
171752 *ppCsr = pCsr = (sqlite3_vtab_cursor *)sqlite3_malloc(sizeof(Fts3Cursor));
172585 ** If no error occurs, *paOut is set to point at an sqlite3_malloc'd buffer
172894 pTS->aaOutput[0] = sqlite3_malloc(nDoclist + FTS3_VARINT_MAX + 1);
173110 pSegcsr = sqlite3_malloc(sizeof(Fts3MultiSegReader));
174073 pHash = sqlite3_malloc(sizeof(Fts3Hash));
174190 ** sqlite3_malloc(). This function takes responsibility for eventually
174368 aOut = (char *)sqlite3_malloc(nPoslist+8);
174735 char *aDoclist = sqlite3_malloc(nByte+FTS3_BUFFER_PADDING);
176168 char **pzErr /* OUT: sqlite3_malloc'd error message */
176329 pCsr = (Fts3auxCursor *)sqlite3_malloc(sizeof(Fts3auxCursor));
176780 ** Allocate nByte bytes of memory using sqlite3_malloc(). If successful,
177692 char **pzErr /* OUT: Error message (sqlite3_malloc) */
177774 ** sqlite3_malloc(). It is the responsibility of the caller to use
178409 t = (porter_tokenizer *) sqlite3_malloc(sizeof(*t));
178439 c = (porter_tokenizer_cursor *) sqlite3_malloc(sizeof(*c));
179596 t = (simple_tokenizer *) sqlite3_malloc(sizeof(*t));
179651 c = (simple_tokenizer_cursor *) sqlite3_malloc(sizeof(*c));
179930 char **pzErr /* OUT: sqlite3_malloc'd error message */
179963 pTab = (Fts3tokTable *)sqlite3_malloc(sizeof(Fts3tokTable));
180033 pCsr = (Fts3tokCursor *)sqlite3_malloc(sizeof(Fts3tokCursor));
180877 p = sqlite3_malloc(sizeof(*p) + 100);
181402 ** NULL, then a buffer is allocated using sqlite3_malloc() and populated
181450 char *aByte = sqlite3_malloc(nByte + FTS3_NODE_PADDING);
181565 aCopy = (char*)sqlite3_malloc(nCopy);
181854 pReader = (Fts3SegReader *)sqlite3_malloc(sizeof(Fts3SegReader) + nExtra);
182280 pTree->aData = (char *)sqlite3_malloc(nReq);
182324 pNew = (SegmentNode *)sqlite3_malloc(sizeof(SegmentNode) + p->nNodeSize);
182471 pWriter = (SegmentWriter *)sqlite3_malloc(sizeof(SegmentWriter));
182477 pWriter->aData = (char *)sqlite3_malloc(p->nNodeSize);
185134 pWriter = (IncrmergeWriter *)sqlite3_malloc(nAlloc);
185770 pRet = (char *)sqlite3_malloc(p->pList->nData);
185790 pDeferred = sqlite3_malloc(sizeof(*pDeferred));
188003 pNew = (unicode_tokenizer *) sqlite3_malloc(sizeof(unicode_tokenizer));
188055 pCsr = (unicode_cursor *)sqlite3_malloc(sizeof(unicode_cursor));
188986 ** Free a JsonParse object that was obtained from sqlite3_malloc().
189204 zOut = sqlite3_malloc( n+1 );
189851 ** obtained from sqlite3_malloc().
190658 pNew = *ppVtab = sqlite3_malloc( sizeof(*pNew) );
190677 pCur = sqlite3_malloc( sizeof(*pCur) );
195191 ** the database and copied into a buffer obtained from sqlite3_malloc().
195432 char **pzReport /* OUT: sqlite3_malloc'd report text */
196955 pCsr->aConstraint = p = sqlite3_malloc(sizeof(RtreeConstraint)*4);
197505 pGeomCtx = (RtreeGeomCallback *)sqlite3_malloc(sizeof(RtreeGeomCallback));
197530 pGeomCtx = (RtreeGeomCallback *)sqlite3_malloc(sizeof(RtreeGeomCallback));
199684 aOut = sqlite3_malloc(nOut+1);
199741 ** sqlite3_malloc containing an SQL statement. This function prepares the SQL
200084 ** returns a copy of the string in memory obtained from sqlite3_malloc().
200866 ** The memory for the returned string is obtained from sqlite3_malloc().
200920 ** The memory for the returned string is obtained from sqlite3_malloc().
208210 pRet = (sqlite3_changeset_iter *)sqlite3_malloc(nByte);
209170 p->aUpdateMask = sqlite3_malloc(nU32*sizeof(u32));
209219 pUp = (SessionUpdate*)sqlite3_malloc(nByte);
210683 p = (sqlite3_changegroup*)sqlite3_malloc(sizeof(sqlite3_changegroup));
211085 pNew = sqlite3_malloc(sizeof(sqlite3_rebaser));
214526 aSeen = sqlite3_malloc(nPhrase);
215110 zRet = (char*)sqlite3_malloc(nIn+1);
215763 *ppOut = pRet = (Fts5Config*)sqlite3_malloc(sizeof(Fts5Config));
216453 *ppNew = pNew = sqlite3_malloc(sizeof(Fts5Expr));
216745 ** using sqlite3_malloc(). This approach could be improved upon. */
216880 ** using sqlite3_malloc(). This approach could be improved upon. */
219336 *ppNew = pNew = (Fts5Hash*)sqlite3_malloc(sizeof(Fts5Hash));
226944 char **pzErr /* OUT: sqlite3_malloc'd error message */
226954 char **pzErr /* OUT: sqlite3_malloc'd error message */
227094 idxStr = (char*)sqlite3_malloc(pInfo->nConstraint * 8 + 1);
229358 pGlobal = (Fts5Global*)sqlite3_malloc(sizeof(Fts5Global));
230677 p = sqlite3_malloc(sizeof(AsciiTokenizer));
230966 p = (Unicode61Tokenizer*)sqlite3_malloc(sizeof(Unicode61Tokenizer));
231190 pRet = (PorterTokenizer*)sqlite3_malloc(sizeof(PorterTokenizer));
231888 TrigramTokenizer *pNew = (TrigramTokenizer*)sqlite3_malloc(sizeof(*pNew));
233378 char **pzErr /* OUT: sqlite3_malloc'd error message */
233388 char **pzErr /* OUT: sqlite3_malloc'd error message */
233779 pCsr->zLeTerm = sqlite3_malloc(pCsr->nLeTerm+1);
234027 pNew = sqlite3_malloc( sizeof(*pNew) );
234049 pCur = sqlite3_malloc( sizeof(*pCur) );