lguest: Fix a memory leak with the lg object during launcher close
authorMark Wallis <mwallis@serialmonkey.com>
Mon, 26 Jan 2009 06:32:35 +0000 (17:32 +1100)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 30 Jan 2009 01:04:11 +0000 (11:34 +1030)
commit05dfdbbd678ea2b642db73f48b75667a23d15484
tree63d4cbf36a1fdf11e77008bd169d02446469cc8b
parentb44d49ab0954accefba4c71274ab58abe1c25c52
lguest: Fix a memory leak with the lg object during launcher close

Fix a memory leak identified by Rusty Russell during LCA09 by
kfree'ing the lg object instead of just clearing it when the
launcher closes.

Signed-off-by: Mark Wallis <mwallis@serialmonkey.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/lguest/lguest_user.c