-
Notifications
You must be signed in to change notification settings - Fork 322
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
Conversation
There was a problem hiding this 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.
tools/plugin/alsaplug/tplg.c
Outdated
if (available_fmts->output_pin_fmts) | ||
free(available_fmts->output_pin_fmts); | ||
if (available_fmts->input_pin_fmts) | ||
free(available_fmts->input_pin_fmts); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack fixed now
There was a problem hiding this comment.
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
There was a problem hiding this 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 ?
not yet @lgirdwood. Im working to get there |
There was a problem hiding this 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 ?
@ranj063 ping. |
@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>
Sorry for the delay @lgirdwood . Fixed now |
@wszypelt Can you check? This seems to be stuck.. |
@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 |
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
No description provided.