| 106 | } |
| 107 | |
| 108 | static void gpf_cleanup(GpfProj *lp, cbm_store_t *store) { |
| 109 | if (store) cbm_store_close(store); |
| 110 | if (lp->srv) { cbm_mcp_server_free(lp->srv); lp->srv = NULL; } |
| 111 | free(lp->project); |
| 112 | lp->project = NULL; |
| 113 | th_rmtree(lp->tmpdir); |
| 114 | unlink(lp->dbpath); |
| 115 | char wal[600], shm[600]; |
| 116 | snprintf(wal, sizeof(wal), "%s-wal", lp->dbpath); |
| 117 | unlink(wal); |
| 118 | snprintf(shm, sizeof(shm), "%s-shm", lp->dbpath); |
| 119 | unlink(shm); |
| 120 | } |
| 121 | |
| 122 | /* ── Node-count helpers ──────────────────────────────────────────── */ |
| 123 |
no test coverage detected