| 123 | } |
| 124 | |
| 125 | static void gpg_cleanup(GpgProj *lp, cbm_store_t *store) { |
| 126 | if (store) |
| 127 | cbm_store_close(store); |
| 128 | if (lp->srv) { |
| 129 | cbm_mcp_server_free(lp->srv); |
| 130 | lp->srv = NULL; |
| 131 | } |
| 132 | free(lp->project); |
| 133 | lp->project = NULL; |
| 134 | th_rmtree(lp->tmpdir); |
| 135 | unlink(lp->dbpath); |
| 136 | char wal[600], shm[600]; |
| 137 | snprintf(wal, sizeof(wal), "%s-wal", lp->dbpath); |
| 138 | unlink(wal); |
| 139 | snprintf(shm, sizeof(shm), "%s-shm", lp->dbpath); |
| 140 | unlink(shm); |
| 141 | } |
| 142 | |
| 143 | /* ── Node-count helpers ─────────────────────────────────────────── */ |
| 144 |
no test coverage detected