ALSA: pcm: Fix UAF in snd_pcm_oss_get_formats()