We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9179881 commit ab555eeCopy full SHA for ab555ee
lib/kunit/debugfs.c
@@ -212,8 +212,11 @@ void kunit_debugfs_create_suite(struct kunit_suite *suite)
212
213
err:
214
string_stream_destroy(suite->log);
215
- kunit_suite_for_each_test_case(suite, test_case)
+ suite->log = NULL;
216
+ kunit_suite_for_each_test_case(suite, test_case) {
217
string_stream_destroy(test_case->log);
218
+ test_case->log = NULL;
219
+ }
220
}
221
222
void kunit_debugfs_destroy_suite(struct kunit_suite *suite)
0 commit comments