Skip to content

Free the index array immediately at the end of ary_combination_next()#6877

Merged
matz merged 1 commit into
mruby:masterfrom
dearblue:array-ext
Jun 1, 2026
Merged

Free the index array immediately at the end of ary_combination_next()#6877
matz merged 1 commit into
mruby:masterfrom
dearblue:array-ext

Conversation

@dearblue

@dearblue dearblue commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@dearblue dearblue requested a review from matz as a code owner June 1, 2026 14:34

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request fixes a memory leak in ary_combination_next within mrbgems/mruby-array-ext/src/array.c by freeing state->indices and setting it to NULL when the combination iteration finishes. There are no review comments, so I have no feedback to provide.

@matz matz merged commit c58b0b6 into mruby:master Jun 1, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants