| 124 | } |
| 125 | |
| 126 | static void ei_cleanup(EILangProj *lp, cbm_store_t *store) { |
| 127 | if (store) cbm_store_close(store); |
| 128 | if (lp->srv) { cbm_mcp_server_free(lp->srv); lp->srv = NULL; } |
| 129 | free(lp->project); |
| 130 | lp->project = NULL; |
| 131 | th_rmtree(lp->tmpdir); |
| 132 | unlink(lp->dbpath); |
| 133 | char wal[600], shm[600]; |
| 134 | snprintf(wal, sizeof(wal), "%s-wal", lp->dbpath); |
| 135 | unlink(wal); |
| 136 | snprintf(shm, sizeof(shm), "%s-shm", lp->dbpath); |
| 137 | unlink(shm); |
| 138 | } |
| 139 | |
| 140 | /* Index `files`, check IMPORTS count >= `floor`. Dumps a diagnostic on |
| 141 | * failure so failures are self-diagnosable without re-running manually. */ |
no test coverage detected