diff --git a/src/PgSqlHandle.php b/src/PgSqlHandle.php index ef0c699..de135d3 100644 --- a/src/PgSqlHandle.php +++ b/src/PgSqlHandle.php @@ -148,7 +148,7 @@ final class PgSqlHandle implements Handle */ public function __destruct() { - $this->free(); + $this->close(); } /** diff --git a/src/PqHandle.php b/src/PqHandle.php index 4a25111..9f774d6 100644 --- a/src/PqHandle.php +++ b/src/PqHandle.php @@ -121,7 +121,7 @@ final class PqHandle implements Handle */ public function __destruct() { - $this->free(); + $this->close(); } /**