nhlt-dmic-info: fix simple memory leak issue

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2024-01-17 17:35:53 +01:00
parent 4cb3e3a7b5
commit 985d741619

View file

@ -248,6 +248,7 @@ static int nhlt_to_json(FILE *out, const char *nhlt_file)
if (fd < 0) {
_errno = errno;
fprintf(stderr, "Unable to open file '%s': %s\n", nhlt_file, strerror(errno));
free(buf);
return _errno;
}
pos = 0;