kmodloader: improve memory accounting and deallocation
authorTony Ambardar <itugrok@yahoo.com>
Thu, 25 Jan 2024 02:20:37 +0000 (18:20 -0800)
committerTony Ambardar <itugrok@yahoo.com>
Sat, 2 Mar 2024 17:43:40 +0000 (09:43 -0800)
commit6a59975afc2c390e64cb7a23798f3b0c10964884
tree4c3f87bca018defbdceb4499f9aeb36abde04f21
parent510157049fab700eaddad45bfcc93bddd28fcd61
kmodloader: improve memory accounting and deallocation

Add missing calls to free module_folders and modules data during cleanup,
and ensure that resources are consistently freed on exit paths.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
kmodloader.c