From 71a3c9c45d7829994d3d66f014410f7c223f88f7 Mon Sep 17 00:00:00 2001 From: Chunwei Chen Date: Thu, 15 Dec 2016 11:12:50 -0800 Subject: Fix splat memleak SPLAT_TEST_FINI didn't call kfree causing memleak. Signed-off-by: Chunwei Chen --- module/splat/splat-internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'module') 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; \ } \ } \ -- cgit v1.2.3