free the pcm structure and return &bad_pcm if open fails.

Test: mm libtinyalsa
Bug: 166667071
Change-Id: I5240adad74c27c09cb6617db07c3ae9455493665
1 file changed