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

[flang][unittests] Use malloc when memory will be deallcated with free #84380

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

kparzysz
Copy link
Contributor

@kparzysz kparzysz commented Mar 7, 2024

Runtime unit tests used new[] to allocate memory, which then was released using free.

This was detected by address sanitizer.

Runtime unit tests used `new` to allocate memory, which then was released
using `free`.

This was detected by address sanitizer.
@kparzysz kparzysz requested a review from clementval March 7, 2024 21:29
@llvmbot llvmbot added the flang Flang issues not falling into any other category label Mar 7, 2024
@kparzysz kparzysz requested a review from klausler March 11, 2024 13:39
@kparzysz kparzysz merged commit cd55046 into llvm:main Mar 11, 2024
6 checks passed
@kparzysz kparzysz deleted the users/kparzysz/asan-01 branch March 11, 2024 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flang Flang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants