ALSA: usb-audio: fix rate_list memory leak
authorClemens Ladisch <clemens@ladisch.de>
Fri, 18 May 2012 16:00:43 +0000 (18:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Jun 2012 15:36:11 +0000 (00:36 +0900)
commit22aca500eb55daf5c84bffb001d3cce14da08b08
treea55f18824c22c4fa38f408ef15c22eeced5e5acb
parent58f9c9764228f69ef523dcf5f87d5b587464fb52
ALSA: usb-audio: fix rate_list memory leak

commit 5cd5d7c44990658df6ab49f6253c39617c53b03d upstream.

The array of sample rates is reallocated every time when opening
the PCM device, but was freed only once when unplugging the device.

Reported-by: "Alexander E. Patrakov" <patrakov@gmail.com>
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/pcm.c