hal: fix LLVM issues

Fix potential memory leak issue in add_new_sndcard
and monitor_thread_loop

Change-Id: I62b8b1457e27377f3ec9e05d2fbf566ab22358ed
1 file changed