]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2a6a7b936a695eb8d60292894b6e12ebe9f1138f
tree9c60a5f46538233ab41f97cdf42fb9b33a4af7b1
parent513bf05e98d0d36408a4a49bdeb5652b95a1e23f
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