alsa: fix chmaps leak

This commit is contained in:
Wim Taymans 2019-01-29 12:10:15 +01:00
parent bf33ce3fc0
commit 1baef2625c

View file

@ -315,6 +315,7 @@ spa_alsa_enum_format(struct state *state, uint32_t *index,
if (maps[*index] == NULL) {
res = 0;
snd_pcm_free_chmaps(maps);
goto exit;
}
map = &maps[*index]->map;