From: Takashi Iwai Date: Wed, 22 Apr 2015 15:54:25 +0000 (+0200) Subject: ALSA: core: Fix possible memory leaks at error path in info.c X-Git-Tag: omap-for-v4.2/fixes-rc1^2~113^2~111^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=886364f679342a381c9cb4a0b2588fb103bb6a22;p=pandora-kernel.git ALSA: core: Fix possible memory leaks at error path in info.c Currently, snd_info_init() just returns an error without releasing the previously assigned resources at error path. The assigned proc and info entries have to be released properly. This patch covers it. While we are at it, refactor the code a bit, too. Acked-by: Jaroslav Kysela Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed