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