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

dsps_snr_f32 causing a memory leak (DSP-152) #96

Open
4 tasks done
hatl opened this issue Oct 31, 2024 · 1 comment
Open
4 tasks done

dsps_snr_f32 causing a memory leak (DSP-152) #96

hatl opened this issue Oct 31, 2024 · 1 comment
Labels

Comments

@hatl
Copy link

hatl commented Oct 31, 2024

Answers checklist.

  • I have read the ESP-DSP documentation and the issue is not addressed there.
  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my ESP-DSP branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v5.3.1

Module or chip used.

ESP32-H2

DSP version.

master

What is the expected behavior?

no memory leak

What is the actual behavior?

memory leak

Steps to reproduce.

call dsps_snr_f32 in a way to reach

Code to reproduce this issue.

No response

Debug logs.

No response

More Information.

The array created here:

float *temp_array = new float[len * 2];

is not being deleted when returning here:

@hatl hatl added the Type: Bug Bugs in ESP-IDF label Oct 31, 2024
@github-actions github-actions bot changed the title dsps_snr_f32 causing a memory leak dsps_snr_f32 causing a memory leak (DSP-152) Oct 31, 2024
@dmitry1945
Copy link
Collaborator

@hatl
thank you very much.
We will fix it soon.

Respect,
Dmitry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants