From: Jesper Juhl Date: Mon, 24 Oct 2011 21:41:37 +0000 (+0200) Subject: line6: fix memory leaks in line6_init_midi() X-Git-Tag: v3.3-rc1~152^2~101^2~359 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=982d6ab50115025c63f4b9f7175614008c41d449;p=pandora-kernel.git line6: fix memory leaks in line6_init_midi() If the first call to line6_midibuf_init() fails we'll leak a little bit of memory. If the second call fails we'll leak a bit more. This happens when we return from the function and the local variable 'line6midi' goes out of scope. Signed-off-by: Jesper Juhl Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed