mirror of
https://github.com/alsa-project/alsa-utils
synced 2025-01-08 17:56:56 +01:00
nhlt-dmic-info: fix simple memory leak issue
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
4cb3e3a7b5
commit
985d741619
1 changed files with 1 additions and 0 deletions
|
@ -248,6 +248,7 @@ static int nhlt_to_json(FILE *out, const char *nhlt_file)
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
_errno = errno;
|
_errno = errno;
|
||||||
fprintf(stderr, "Unable to open file '%s': %s\n", nhlt_file, strerror(errno));
|
fprintf(stderr, "Unable to open file '%s': %s\n", nhlt_file, strerror(errno));
|
||||||
|
free(buf);
|
||||||
return _errno;
|
return _errno;
|
||||||
}
|
}
|
||||||
pos = 0;
|
pos = 0;
|
||||||
|
|
Loading…
Reference in a new issue