mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-03-15 05:33:44 -04:00
ucm: fix possible memory leak in execute_sysw()
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
2e82060ebc
commit
d25ddafaa7
1 changed files with 1 additions and 0 deletions
|
|
@ -578,6 +578,7 @@ static int execute_sysw(const char *sysw)
|
||||||
|
|
||||||
if (wlen != (ssize_t)len) {
|
if (wlen != (ssize_t)len) {
|
||||||
uc_error("unable to write '%s' to '%s': %s", value, path, strerror(myerrno));
|
uc_error("unable to write '%s' to '%s': %s", value, path, strerror(myerrno));
|
||||||
|
free(s);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue