Skip to content

Commit 638fdd4

Browse files
committed
pgsqlSetNoticeCallback: cleanup on pgsql_handle_closer
Fix to what @ranvis noticed in php#4823 (comment)
1 parent 4927242 commit 638fdd4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/pdo_pgsql/pgsql_driver.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ static int pgsql_handle_closer(pdo_dbh_t *dbh) /* {{{ */
233233
{
234234
pdo_pgsql_db_handle *H = (pdo_pgsql_db_handle *)dbh->driver_data;
235235
if (H) {
236+
pdo_pgsql_cleanup_notice_callback(H);
236237
if (H->server) {
237238
PQfinish(H->server);
238239
H->server = NULL;

0 commit comments

Comments
 (0)