Skip to content

S_cleanup_regmatch_info_aux - don't Safefree(NULL)#24353

Open
richardleach wants to merge 1 commit intoPerl:bleadfrom
richardleach:cleanup_Safefree_NULL
Open

S_cleanup_regmatch_info_aux - don't Safefree(NULL)#24353
richardleach wants to merge 1 commit intoPerl:bleadfrom
richardleach:cleanup_Safefree_NULL

Conversation

@richardleach
Copy link
Copy Markdown
Contributor

One of the tasks of the S_cleanup_regmatch_info_aux destructor is to free any aux->poscache allocation.

However, many regular expressions - such as a simple TRIE - don't cause an allocation to occur. This commit adds a check to ensure that an unnecessary function call isn't made in those instances.


  • This set of changes does not require a perldelta entry.

One of the tasks of the `S_cleanup_regmatch_info_aux` destructor is to
free any `aux->poscache` allocation.

However, many regular expressions - such as a simple TRIE - don't cause
an allocation to occur. This commit adds a check to ensure that an
unnecessary function call isn't made in those instances.
@richardleach richardleach added the defer-next-dev This PR should not be merged yet, but await the next development cycle label Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

defer-next-dev This PR should not be merged yet, but await the next development cycle

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant