| 117 | } |
| 118 | |
| 119 | static void gpe_cleanup(GpeProj *lp, cbm_store_t *store) { |
| 120 | if (store) cbm_store_close(store); |
| 121 | if (lp->srv) { cbm_mcp_server_free(lp->srv); lp->srv = NULL; } |
| 122 | free(lp->project); |
| 123 | lp->project = NULL; |
| 124 | th_rmtree(lp->tmpdir); |
| 125 | unlink(lp->dbpath); |
| 126 | char wal[600], shm[600]; |
| 127 | snprintf(wal, sizeof(wal), "%s-wal", lp->dbpath); |
| 128 | unlink(wal); |
| 129 | snprintf(shm, sizeof(shm), "%s-shm", lp->dbpath); |
| 130 | unlink(shm); |
| 131 | } |
| 132 | |
| 133 | /* ── Node-count helpers ─────────────────────────────────────────── */ |
| 134 |
no test coverage detected