We obtain a kmod_module structure for kunit module in order to check if it is modular or built-in, then we never release that structure. Fix it. Signed-off-by: Janusz Krzysztofik <janusz.krzysztofik@xxxxxxxxxxxxxxx> Reviewed-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx> --- lib/igt_kmod.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/igt_kmod.c b/lib/igt_kmod.c index faf31afabc..34ddec3fad 100644 --- a/lib/igt_kmod.c +++ b/lib/igt_kmod.c @@ -797,6 +797,7 @@ static void __igt_kunit(const char *module_name, const char *opts) } is_builtin = kmod_module_get_initstate(kunit_kmod) == KMOD_MODULE_BUILTIN; + kmod_module_unref(kunit_kmod); results = ktap_parser_start(tst.kmsg, is_builtin); -- 2.41.0