]> git.alsa-project.org Git - alsa-lib.git/commitdiff
pcm: fix memory leak in _snd_pcm_parse_config_chmaps() (coverity)
authorJaroslav Kysela <perex@perex.cz>
Fri, 24 May 2019 08:57:20 +0000 (10:57 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 24 May 2019 19:25:50 +0000 (21:25 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/pcm/pcm.c

index 323926e1fc257fdcbc013362f27c4664f2cf6a8b..fa51ca9987a8d739f21c1b4fb9ef60b4cfc8171c 100644 (file)
@@ -8391,6 +8391,7 @@ _snd_pcm_parse_config_chmaps(snd_config_t *conf)
                        free(chmap);
                        goto error;
                }
+               free(chmap);
                nums++;
        }
        return maps;