mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-14 04:27:46 -05:00
pcm_hw: fix possible memory leak (coverity)
This commit is contained in:
parent
822e781a47
commit
0f4f48d377
2 changed files with 21 additions and 17 deletions
|
|
@ -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++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue