The "test_dev" pointer is freed but then returned to the caller.
Fixes: f53b2e5e1d01 ("kmod: add test driver to stress test the module loader") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>