| 218 | } |
| 219 | |
| 220 | static void es_lang_cleanup(ES_LangProj *lp, cbm_store_t *store) { |
| 221 | if (store) { |
| 222 | cbm_store_close(store); |
| 223 | } |
| 224 | if (lp->srv) { |
| 225 | cbm_mcp_server_free(lp->srv); |
| 226 | lp->srv = NULL; |
| 227 | } |
| 228 | free(lp->project); |
| 229 | lp->project = NULL; |
| 230 | th_rmtree(lp->tmpdir); |
| 231 | unlink(lp->dbpath); |
| 232 | char wal[600]; |
| 233 | char shm[600]; |
| 234 | snprintf(wal, sizeof(wal), "%s-wal", lp->dbpath); |
| 235 | unlink(wal); |
| 236 | snprintf(shm, sizeof(shm), "%s-shm", lp->dbpath); |
| 237 | unlink(shm); |
| 238 | } |
| 239 | |
| 240 | /* Every graph edge type the pipeline can emit — used in diagnostic dumps. */ |
| 241 | static const char *ES_ALL_EDGE_TYPES[] = {"CALLS", |
no test coverage detected