adhd: Fix memory leak in cras_alsa_card
(11/16 leaking tests for the issue)
Free dev get from ucm_get_dev_for_mixer in filter_controls.
BUG=chromium:844092
TEST=Apply full patch set and run
FEATURES="test noclean nostrip" emerge-eve adhd
and
valgrind --leak-check=full --show-leak-kinds=all alsa_card_unittest
Change-Id: I1d3012107b0c29148268fb076ebc27f9bd5c497b
Reviewed-on: https://chromium-review.googlesource.com/1073130
Commit-Ready: Chih-Yang Hsia <paulhsia@chromium.org>
Tested-by: Chih-Yang Hsia <paulhsia@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
1 file changed