lguest: dereferencing freed mem in add_eventfd()
authorDan Carpenter <error27@gmail.com>
Sun, 19 Jul 2009 11:46:09 +0000 (14:46 +0300)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 30 Jul 2009 06:33:43 +0000 (16:03 +0930)
"new" was freed and then dereferenced.  Also the return value wasn't being
used so I modified the caller as well.

Compile tested only.  Found by smatch (http://repo.or.cz/w/smatch.git).

regards,
dan carpenter

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

No differences found