Skip to content

Commit 33a3ac1

Browse files
committed
pgsqlSetNoticeCallback: cleanup on pgsql_handle_closer
Fix to what @ranvis noticed in #4823 (comment)
1 parent 6414d18 commit 33a3ac1

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
@@ -225,6 +225,7 @@ static int pgsql_handle_closer(pdo_dbh_t *dbh) /* {{{ */
225225
{
226226
pdo_pgsql_db_handle *H = (pdo_pgsql_db_handle *)dbh->driver_data;
227227
if (H) {
228+
pdo_pgsql_cleanup_notice_callback(H);
228229
if (H->server) {
229230
PQfinish(H->server);
230231
H->server = NULL;

0 commit comments

Comments
 (0)