ALSA: oxfw: fix memory leak for model-dependent data at error path
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 17 Sep 2018 08:26:08 +0000 (17:26 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 17 Sep 2018 11:40:09 +0000 (13:40 +0200)
commitce925f088b979537f22f9e05eb923ef9822ca139
treef318e44802df1ef27788832aaf98c24511a5d79c
parentb1fbebd4164b3d170ad916dcd692cf843c9c065d
ALSA: oxfw: fix memory leak for model-dependent data at error path

After allocating model-dependent data, ALSA OXFW driver has memory leak
of the data at error path.

This commit releases the data at the error path.

Fixes: 6c29230e2a5f ('ALSA: oxfw: delayed registration of sound card')
Cc: <stable@vger.kernel.org> # v4.7+
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/oxfw/oxfw.c