** Reset an IdxHash hash table. */
| 10396 | ** Reset an IdxHash hash table. |
| 10397 | */ |
| 10398 | static void idxHashClear(IdxHash *pHash){ |
| 10399 | int i; |
| 10400 | for(i=0; i<IDX_HASH_SIZE; i++){ |
| 10401 | IdxHashEntry *pEntry; |
| 10402 | IdxHashEntry *pNext; |
| 10403 | for(pEntry=pHash->aHash[i]; pEntry; pEntry=pNext){ |
| 10404 | pNext = pEntry->pHashNext; |
| 10405 | sqlite3_free(pEntry->zVal2); |
| 10406 | sqlite3_free(pEntry); |
| 10407 | } |
| 10408 | } |
| 10409 | memset(pHash, 0, sizeof(IdxHash)); |
| 10410 | } |
| 10411 | |
| 10412 | /* |
| 10413 | ** Return the index of the hash bucket that the string specified by the |
no outgoing calls
no test coverage detected