commit | 982d6ab50115025c63f4b9f7175614008c41d449 | [log] [tgz] |
---|---|---|
author | Jesper Juhl <jj@chaosbits.net> | Mon Oct 24 23:41:37 2011 +0200 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Sat Nov 26 16:14:11 2011 -0800 |
tree | fefa5059cef8da3dbb942a69eb217daad5bd322b | |
parent | 6f37aca827e6d075c9e9d3ab1b233cce2a3bc9f1 [diff] |
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 <jj@chaosbits.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>