Skip to content

fix: don't leak conn when returning error in pgxv5.WithInstance() fixes #1366#1365

Open
bdunlap-synack wants to merge 2 commits into
golang-migrate:masterfrom
bdunlap-synack:patch-1
Open

fix: don't leak conn when returning error in pgxv5.WithInstance() fixes #1366#1365
bdunlap-synack wants to merge 2 commits into
golang-migrate:masterfrom
bdunlap-synack:patch-1

Conversation

@bdunlap-synack

@bdunlap-synack bdunlap-synack commented Mar 4, 2026

Copy link
Copy Markdown

fixing #1366 leaked conn when error return in pgx/v5.WithInstance()

fixing jackc/pgx#2512 leaked conn when error return
@bdunlap-synack bdunlap-synack changed the title fix issue #2512 fix: issue #2512 Mar 4, 2026
@bdunlap-synack bdunlap-synack changed the title fix: issue #2512 fix: don't leak conn when returning error in pgxv5.WithInstance() (issue #2512) Mar 4, 2026
@bdunlap-synack bdunlap-synack changed the title fix: don't leak conn when returning error in pgxv5.WithInstance() (issue #2512) fix: don't leak conn when returning error in pgxv5.WithInstance() (issue #1366) Mar 4, 2026
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 54.444% (+0.01%) from 54.432%
when pulling 9a1ab23 on bdunlap-synack:patch-1
into 257fa84 on golang-migrate:master.

@bdunlap-synack

Copy link
Copy Markdown
Author

i take it this repo is actually unmaintained now?

@bdunlap-synack bdunlap-synack changed the title fix: don't leak conn when returning error in pgxv5.WithInstance() (issue #1366) fix: don't leak conn when returning error in pgxv5.WithInstance() issue #1366 Apr 6, 2026
@bdunlap-synack bdunlap-synack changed the title fix: don't leak conn when returning error in pgxv5.WithInstance() issue #1366 fix: don't leak conn when returning error in pgxv5.WithInstance() fixes issue #1366 Apr 6, 2026
@bdunlap-synack bdunlap-synack changed the title fix: don't leak conn when returning error in pgxv5.WithInstance() fixes issue #1366 fix: don't leak conn when returning error in pgxv5.WithInstance() fixes #1366 Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants