** Free all elements of the linked list starting from pScan up until pLast ** (pLast is not freed). */
| 9424 | ** (pLast is not freed). |
| 9425 | */ |
| 9426 | static 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 |
no test coverage detected