MCPcopy Create free account
hub / github.com/audacity/audacity / idxScanFree

Function idxScanFree

lib-src/sqlite/shell.c:9426–9436  ·  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

9424** (pLast is not freed).
9425*/
9426static void idxScanFree(IdxScan *pScan, IdxScan *pLast){
9427 IdxScan *p;
9428 IdxScan *pNext;
9429 for(p=pScan; p!=pLast; p=pNext){
9430 pNext = p->pNextScan;
9431 idxConstraintFree(p->pOrder);
9432 idxConstraintFree(p->pEq);
9433 idxConstraintFree(p->pRange);
9434 sqlite3_free(p);
9435 }
9436}
9437
9438/*
9439** 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