diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-04-22 17:54:25 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-04-23 17:11:23 +0200 |
commit | 886364f679342a381c9cb4a0b2588fb103bb6a22 (patch) | |
tree | 086f8d3bb6ad0998d66830b2301d749907459867 /net | |
parent | 4adb7bcbcb69d3bee0ed72de83adaee27daccdd8 (diff) | |
download | linux-886364f679342a381c9cb4a0b2588fb103bb6a22.tar.bz2 |
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 <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions