Skip to contentSkip to conversation

aplay: fix memory leak when setup_chmap() fail

DISCUSSION GitHub pull_request - opened 1 participant 1 message Jun 23, 2019 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

alsa-project/alsa-utils pull request #21 was opened from chunxuxiao:

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.
this summit has been Reviewed-by @takaswie

Request URL : https://github.com/alsa-project/alsa-utils/pull/21
Patch URL : https://github.com/alsa-project/alsa-utils/pull/21.patch
Repository URL: https://github.com/alsa-project/alsa-utils