ALSA: usb-audio: fix rate_list memory leak
authorClemens Ladisch <clemens@ladisch.de>
Fri, 18 May 2012 16:00:43 +0000 (18:00 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 31 May 2012 08:25:44 +0000 (10:25 +0200)
commit5cd5d7c44990658df6ab49f6253c39617c53b03d
tree88c36facfd9b20e8afbbe087abea5bde2e65e61e
parentadcc70b249ca77c1197eb62b1645146721ba6e5b
ALSA: usb-audio: fix rate_list memory leak

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>
Cc: <stable@vger.kernel.org>
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/pcm.c