hal: Add NULL check before freeing snd_card_name

Ensure the pointer is valid before freeing to avoid
crash when a valid sound card is not found.

Change-Id: I2a2681935797e059b925c9f70f352aa603a41d9c
CRs-Fixed: 924286
1 file changed