** Clean up resources allocated by recoverWriteDataInit() (stuff in ** sqlite3_recover.w1). */
| 15163 | ** sqlite3_recover.w1). |
| 15164 | */ |
| 15165 | static void recoverWriteDataCleanup(sqlite3_recover *p){ |
| 15166 | RecoverStateW1 *p1 = &p->w1; |
| 15167 | int ii; |
| 15168 | for(ii=0; ii<p1->nVal; ii++){ |
| 15169 | sqlite3_value_free(p1->apVal[ii]); |
| 15170 | } |
| 15171 | sqlite3_free(p1->apVal); |
| 15172 | recoverFinalize(p, p1->pInsert); |
| 15173 | recoverFinalize(p, p1->pTbls); |
| 15174 | recoverFinalize(p, p1->pSel); |
| 15175 | memset(p1, 0, sizeof(*p1)); |
| 15176 | } |
| 15177 | |
| 15178 | /* |
| 15179 | ** Perform one step (sqlite3_recover_step()) of work for the connection |
no test coverage detected