Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

t/004_results.t fails with "Use of freed value in iteration ..." #4

Open
yewtc opened this issue Aug 10, 2024 · 0 comments · May be fixed by #5
Open

t/004_results.t fails with "Use of freed value in iteration ..." #4

yewtc opened this issue Aug 10, 2024 · 0 comments · May be fixed by #5

Comments

@yewtc
Copy link

yewtc commented Aug 10, 2024

    for my $radio (grep /:/, @{ $results{$_} }) {
        my ($radio_question) = ($radio =~ /(.*):/);
        @{ $results{$_} } = grep $_ ne $radio_question, @{ $results{$_} }
    }

In the above block because $results{$_} is changed, $radio can become undef as a result t/004_result.t aborts.

@yewtc yewtc linked a pull request Aug 10, 2024 that will close this issue
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 a pull request may close this issue.

1 participant