mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-06 13:29:59 -05:00
Close topology config file after parsing it.
Signed-off-by: Nathan Mills <the.true.nathan.mills@gmail.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
369df32257
commit
1181bfc458
1 changed files with 6 additions and 0 deletions
|
|
@ -121,6 +121,12 @@ static int tplg_parse_data_file(snd_config_t *cfg, struct tplg_elem *elem)
|
||||||
elem->data = priv;
|
elem->data = priv;
|
||||||
priv->size = size;
|
priv->size = size;
|
||||||
elem->size = sizeof(*priv) + size;
|
elem->size = sizeof(*priv) + size;
|
||||||
|
|
||||||
|
if (fclose(fp) == EOF) {
|
||||||
|
SNDERR("Cannot close data file.");
|
||||||
|
ret = -errno;
|
||||||
|
goto err;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue