CRAS: apm_list - clear rmodule after apm_list_deinit

A sanity fix for codes and unit tests.
We should set rmodule to NULL after free it.
apm_list_unittest actually hits this and raises a heap-use-after-free error
after StreamAddToAlreadyOpenedDev is added.

BUG=chromium:976566
TEST=FEATURES="test" USE=asan emerge-${BOARD} -v media-sound/adhd

Change-Id: I1d7b05ffdcc20c090ab9261518fe5a774c03e317
Reviewed-on: https://chromium-review.googlesource.com/1670637
Tested-by: En-Shuo Hsu <enshuo@google.com>
Commit-Ready: En-Shuo Hsu <enshuo@google.com>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
1 file changed