ALSA: PCM: Fix possible memory leaks in the error path
authorTakashi Iwai <tiwai@suse.de>
Fri, 3 Aug 2012 10:48:32 +0000 (12:48 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 3 Aug 2012 10:48:32 +0000 (12:48 +0200)
commitc810f9039f040681ec9d9f2983b748c193037297
tree9c60a5f46538233ab41f97cdf42fb9b33a4af7b1
parentac190c76680cde6ce379b6be5baf89a970ea13d4
ALSA: PCM: Fix possible memory leaks in the error path

When the first page allocation failed for sgbuf, it leaks the records
that have been formerly allocated.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/sgbuf.c