mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
ucm: find_exec() - fix memory leak (dir)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
7764e3e621
commit
7fcb1aadd5
1 changed files with 1 additions and 0 deletions
|
|
@ -73,6 +73,7 @@ static int find_exec(const char *name, char *out, size_t len)
|
|||
|| !(st.st_mode & S_IEXEC))
|
||||
continue;
|
||||
snd_strlcpy(out, bin, len);
|
||||
closedir(dir);
|
||||
return 1;
|
||||
}
|
||||
closedir(dir);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue