Re: [PATCH v2 1/4] kunit: Fix missed memory release in kunit_free_suite_set()

2023-09-22 Thread David Gow
On Thu, 21 Sept 2023 at 09:41, 'Jinjie Ruan' via KUnit Development wrote: > > modprobe cpumask_kunit and rmmod cpumask_kunit, kmemleak detect > a suspected memory leak as below. > > If kunit_filter_suites() in kunit_module_init() succeeds, the > suite_set.start will not be NULL and the kunit_free_

[PATCH v2 1/4] kunit: Fix missed memory release in kunit_free_suite_set()

2023-09-20 Thread Jinjie Ruan
modprobe cpumask_kunit and rmmod cpumask_kunit, kmemleak detect a suspected memory leak as below. If kunit_filter_suites() in kunit_module_init() succeeds, the suite_set.start will not be NULL and the kunit_free_suite_set() in kunit_module_exit() should free all the memory which has not been freed