Skip to content

fix: clear tied ref before untie in CanBindSelect test#44

Merged
toddr merged 1 commit into
cpan-authors:mainfrom
toddr-bot:koan.toddr.bot/fix-untie-inner-ref-warning
Jun 30, 2026
Merged

fix: clear tied ref before untie in CanBindSelect test#44
toddr merged 1 commit into
cpan-authors:mainfrom
toddr-bot:koan.toddr.bot/fix-untie-inner-ref-warning

Conversation

@toddr-bot

Copy link
Copy Markdown
Contributor

What

Clears $tied_obj before untie %nobindsel in the CanBindSelect=0 test block.

Why

The test stored tied(%nobindsel) in $tied_obj to manipulate internal attributes, but never released the reference before calling untie. This produced:

untie attempted while 1 inner references still exist at t/DBI.t line 282.

Visible in make disttest output.

How

Added undef $tied_obj; before the untie call. The reference is no longer needed at that point.

Testing

make test passes. make disttest no longer shows the warning.

🤖 Generated with Claude Code

The CanBindSelect=0 test block stored tied(%nobindsel) in $tied_obj
for attribute manipulation, but never released it before calling
untie. This caused Perl to warn "untie attempted while 1 inner
references still exist" — visible in `make disttest` output.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@toddr toddr marked this pull request as ready for review June 30, 2026 17:14
@toddr toddr merged commit 2ce0bce into cpan-authors:main Jun 30, 2026
24 checks passed
@toddr-bot toddr-bot deleted the koan.toddr.bot/fix-untie-inner-ref-warning branch July 2, 2026 01:06
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