]> git.alsa-project.org Git - alsa-utils.git/commit
aplay: fix memory leak when setup_chmap() fail
authorchunxu.li <chunxuxiao@gmail.com>
Sun, 23 Jun 2019 15:54:29 +0000 (23:54 +0800)
committerJaroslav Kysela <perex@perex.cz>
Wed, 25 Sep 2019 07:57:19 +0000 (09:57 +0200)
commitd40e72490541c5caa567741f72d0f78ddfb082c0
treeddb32aefd7b6a60759341f794d2bb0913807582c
parent192fb6220a89695c568c9b24d60a89507e7011c7
aplay: fix memory leak when setup_chmap() fail

setup_chmap() will return with error number if hw_map calloc fail or
channels doesn't match with hw_params, but memory free was ignored when
error occurs.

Signed-off-by: chunxu.li <chunxuxiao@gmail.com>
Reviewed-by: Takashi Sakamoto o-takashi@sakamocchi.jp
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
aplay/aplay.c