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