summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorChunwei Chen <[email protected]>2016-12-15 11:12:50 -0800
committerBrian Behlendorf <[email protected]>2016-12-15 11:30:11 -0800
commit71a3c9c45d7829994d3d66f014410f7c223f88f7 (patch)
treef0a8f2e2260687f8d17ca54f88a90e59e995943f /module
parentf200b836734550ba258a0d7e05381dc8cebf80f4 (diff)
Fix splat memleak
SPLAT_TEST_FINI didn't call kfree causing memleak. Signed-off-by: Chunwei Chen <[email protected]>
Diffstat (limited to 'module')
-rw-r--r--module/splat/splat-internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/module/splat/splat-internal.h b/module/splat/splat-internal.h
index d00af90fa..36cf04da1 100644
--- a/module/splat/splat-internal.h
+++ b/module/splat/splat-internal.h
@@ -94,6 +94,7 @@
&((sub)->test_list), test_list) { \
if (_test_->desc.id == tid) { \
list_del_init(&(_test_->test_list)); \
+ kfree(_test_); \
_flag_ = 1; \
} \
} \