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

Free a couple of memory leaks in the SOF plugin #9055

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

ranj063
Copy link
Collaborator

@ranj063 ranj063 commented Apr 16, 2024

No description provided.

Copy link
Collaborator

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

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

One comment to first patch, otherwise looks good.

if (available_fmts->output_pin_fmts)
free(available_fmts->output_pin_fmts);
if (available_fmts->input_pin_fmts)
free(available_fmts->input_pin_fmts);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Isn't this if-check redundannt, NULL is ok to free

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ack fixed now

Copy link
Collaborator

Choose a reason for hiding this comment

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

@ranj063 the fix went into the wrong patch

Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

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

Ack, LGTM with comment from @kv2019i.
Btw, does this mean valgrind runs with 0 errors ?

@ranj063
Copy link
Collaborator Author

ranj063 commented Apr 17, 2024

Ack, LGTM with comment from @kv2019i. Btw, does this mean valgrind runs with 0 errors ?

not yet @lgirdwood. Im working to get there

Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

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

Should these 2 patches be squashed ?

@lgirdwood
Copy link
Member

@ranj063 ping.

@lgirdwood lgirdwood added this to the v2.10 milestone Jun 11, 2024
@lgirdwood
Copy link
Member

@ranj063 ping

Free the memory allocated for tplg base and available input/output
formats when the topology is freed.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
@ranj063
Copy link
Collaborator Author

ranj063 commented Jun 13, 2024

@ranj063 ping

Sorry for the delay @lgirdwood . Fixed now

@kv2019i
Copy link
Collaborator

kv2019i commented Jun 17, 2024

@wszypelt Can you check? This seems to be stuck..

@kv2019i
Copy link
Collaborator

kv2019i commented Jun 19, 2024

@wszypelt @ranj063 Still seeing failure. Shall I just proceed with merge? This is touching plugin code that is not even built into the FW, so the quickbuild tests are in no way relevant to this change.

@wszypelt
Copy link

wszypelt commented Jun 19, 2024

@kv2019i after checking the tests, one issue appeared, which is sporadic and it has nothing to do with PR, in my opinion you can merge, but if you still have about an hour, the result should already be green

@kv2019i kv2019i merged commit 9b7fffd into thesofproject:main Jun 19, 2024
44 of 46 checks passed
singalsu added a commit to singalsu/sof that referenced this pull request Aug 29, 2024
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
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 this pull request may close these issues.

5 participants