Message ID | 20230922071020.2554677-3-ruanjinjie@huawei.com |
---|---|
State | Superseded |
Headers | show |
Series | [v3,1/4] kunit: Fix missed memory release in kunit_free_suite_set() | expand |
diff --git a/lib/kunit/executor.c b/lib/kunit/executor.c index a037a46fae5e..9358ed2df839 100644 --- a/lib/kunit/executor.c +++ b/lib/kunit/executor.c @@ -243,7 +243,7 @@ kunit_filter_suites(const struct kunit_suite_set *suite_set, free_copy: if (*err) - kfree(copy); + kfree(copy_start); return filtered; }