MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / idxScanFree

Function idxScanFree

modules/dasSQLITE/sqlite/shell.c:11328–11338  ·  view source on GitHub ↗

** Free all elements of the linked list starting from pScan up until pLast ** (pLast is not freed). */

Source from the content-addressed store, hash-verified

11326** (pLast is not freed).
11327*/
11328static void idxScanFree(IdxScan *pScan, IdxScan *pLast){
11329 IdxScan *p;
11330 IdxScan *pNext;
11331 for(p=pScan; p!=pLast; p=pNext){
11332 pNext = p->pNextScan;
11333 idxConstraintFree(p->pOrder);
11334 idxConstraintFree(p->pEq);
11335 idxConstraintFree(p->pRange);
11336 sqlite3_free(p);
11337 }
11338}
11339
11340/*
11341** Free all elements of the linked list starting from pStatement up

Callers 2

sqlite3_expert_sqlFunction · 0.85
sqlite3_expert_destroyFunction · 0.85

Calls 1

idxConstraintFreeFunction · 0.85

Tested by

no test coverage detected