** Free and reset the EXPLAIN QUERY PLAN data that has been collected ** in p->sGraph. */
| 12019 | ** in p->sGraph. |
| 12020 | */ |
| 12021 | static void eqp_reset(ShellState *p){ |
| 12022 | EQPGraphRow *pRow, *pNext; |
| 12023 | for(pRow = p->sGraph.pRow; pRow; pRow = pNext){ |
| 12024 | pNext = pRow->pNext; |
| 12025 | sqlite3_free(pRow); |
| 12026 | } |
| 12027 | memset(&p->sGraph, 0, sizeof(p->sGraph)); |
| 12028 | } |
| 12029 | |
| 12030 | /* Return the next EXPLAIN QUERY PLAN line with iEqpId that occurs after |
| 12031 | ** pOld, or return the first such line if pOld is NULL |