mirror of
https://gitee.com/openharmony/third_party_alsa-utils
synced 2024-11-23 07:00:15 +00:00
alsamixer: remove wrong free(buf) call in read_file()
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
0657b2a559
commit
56f2064bb4
@ -127,7 +127,6 @@ char *read_file(const char *file_name, unsigned int *file_size)
|
||||
f = fopen(file_name, "r");
|
||||
if (!f) {
|
||||
err = errno;
|
||||
free(buf);
|
||||
errno = err;
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user