MCPcopy Create free account
hub / github.com/2shady4u/godot-sqlite / idxScanFree

Function idxScanFree

src/sqlite/shell.c:13499–13509  ·  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

13497** (pLast is not freed).
13498*/
13499static void idxScanFree(IdxScan *pScan, IdxScan *pLast){
13500 IdxScan *p;
13501 IdxScan *pNext;
13502 for(p=pScan; p!=pLast; p=pNext){
13503 pNext = p->pNextScan;
13504 idxConstraintFree(p->pOrder);
13505 idxConstraintFree(p->pEq);
13506 idxConstraintFree(p->pRange);
13507 sqlite3_free(p);
13508 }
13509}
13510
13511/*
13512** 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