* PQfinish: properly close a connection to the backend. Also frees * the PGconn data structure so it shouldn't be re-used after this. */
| 4393 | * the PGconn data structure so it shouldn't be re-used after this. |
| 4394 | */ |
| 4395 | void |
| 4396 | PQfinish(PGconn *conn) |
| 4397 | { |
| 4398 | if (conn) |
| 4399 | { |
| 4400 | closePGconn(conn); |
| 4401 | freePGconn(conn); |
| 4402 | } |
| 4403 | } |
| 4404 | |
| 4405 | /* |
| 4406 | * PQreset: resets the connection to the backend by closing the |