ALSA: hda/ca0132 - Fix memory leak at error path
authorTakashi Iwai <tiwai@suse.de>
Mon, 4 Sep 2017 15:38:36 +0000 (17:38 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 4 Sep 2017 15:42:27 +0000 (17:42 +0200)
commitcc91ceaf3efd9a2364463b5f85d9f391f1ddaa9d
tree41cfda3d5a464f76dae22ad2d57d4a09924fdf87
parent284b4c9289766c6294d4c6292aea565f78215b0e
ALSA: hda/ca0132 - Fix memory leak at error path

The CA0132 codec driver doesn't call the free function at its error
path of the probe, which leaves the allocated memory.  Call
ca0132_free() properly at the error handling.

Fixes: a73d511c4867 ("ALSA: hda/ca0132: Add unsol handler for DSP and jack detection")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_ca0132.c