]> git.ipfire.org Git - thirdparty/kmod.git/commit
testsuite/test-init: plug memory leaks in success path
authorEmil Velikov <emil.l.velikov@gmail.com>
Fri, 13 Jun 2025 19:12:28 +0000 (20:12 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Mon, 16 Jun 2025 12:37:42 +0000 (07:37 -0500)
commit5611bf6eb2d23e30378225e8aaeb1cf162197620
tree6d0ea4da5a1d22c5ef8a0d8576a7450744791854
parent5cecea47dc4f1493fc905281c53e4071d2838057
testsuite/test-init: plug memory leaks in success path

With the upcoming patches, removing exit() usage, ASan started reporting
that our test leaks kmod_module handles.

Resolve those leaks - we shouldn't be doing that in the normal (success)
path.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/371
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
testsuite/test-init.c