ALSA: 6fire: Don't leak firmware in error path
authorJesper Juhl <jj@chaosbits.net>
Mon, 30 May 2011 10:49:01 +0000 (12:49 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 2 Jun 2011 17:56:31 +0000 (19:56 +0200)
commitbf0be0e951cf1c4c9ce38032195cd8095a16d828
tree0f32e4bc1dd584e0f5e4cae2ceb7acdc0e74a61e
parent46f2cc80514e389bacfb642a32a4181fa1f1d20b
ALSA: 6fire: Don't leak firmware in error path

One of the error paths in
sound/usb/6fire/firmware.c::usb6fire_fw_ezusb_upload() neglects to free
the memory allocated for the firmware before returning, thus leaking the
memory.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/6fire/firmware.c