kmodloader: fix memory leak in scan_loaded_modules()
authorTony Ambardar <itugrok@yahoo.com>
Mon, 15 Jan 2024 20:29:48 +0000 (12:29 -0800)
committerTony Ambardar <itugrok@yahoo.com>
Tue, 16 Jan 2024 01:53:18 +0000 (17:53 -0800)
commit811ca6c2234a3d13efef55947a9cff8bef56ceb7
tree1593b6930ea146f07af0180d70ac416ac97a5b98
parent11cb29e15d68e05a1fef8376fee6d7549ced840a
kmodloader: fix memory leak in scan_loaded_modules()

Commit 4c7b720b9c63 fixed some error-handling paths but introduced another
memory leak; update and fix.

Fixes: 4c7b720b9c63 ("kmodloader: fix GCC fanalyzer warnings")
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
kmodloader.c