pcm_hw: fix possible memory leak (coverity)

This commit is contained in:
Jaroslav Kysela 2016-01-12 16:07:16 +01:00
parent 822e781a47
commit 0f4f48d377
2 changed files with 21 additions and 17 deletions

View file

@ -7512,7 +7512,7 @@ snd_pcm_chmap_query_t **snd_pcm_query_chmaps(snd_pcm_t *pcm)
*/
void snd_pcm_free_chmaps(snd_pcm_chmap_query_t **maps)
{
snd_pcm_chmap_query_t **p = maps;
snd_pcm_chmap_query_t **p;
if (!maps)
return;
for (p = maps; *p; p++)