From 886364f679342a381c9cb4a0b2588fb103bb6a22 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 22 Apr 2015 17:54:25 +0200 Subject: [PATCH] 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-format-patch failed