** Reset an IdxHash hash table. */
| 8553 | ** Reset an IdxHash hash table. |
| 8554 | */ |
| 8555 | static void idxHashClear(IdxHash *pHash){ |
| 8556 | int i; |
| 8557 | for(i=0; i<IDX_HASH_SIZE; i++){ |
| 8558 | IdxHashEntry *pEntry; |
| 8559 | IdxHashEntry *pNext; |
| 8560 | for(pEntry=pHash->aHash[i]; pEntry; pEntry=pNext){ |
| 8561 | pNext = pEntry->pHashNext; |
| 8562 | sqlite3_free(pEntry->zVal2); |
| 8563 | sqlite3_free(pEntry); |
| 8564 | } |
| 8565 | } |
| 8566 | memset(pHash, 0, sizeof(IdxHash)); |
| 8567 | } |
| 8568 | |
| 8569 | /* |
| 8570 | ** Return the index of the hash bucket that the string specified by the |
no outgoing calls
no test coverage detected