]> git.proxmox.com Git - mirror_spl.git/commitdiff
Fix splat memleak
authorChunwei Chen <david.chen@osnexus.com>
Thu, 15 Dec 2016 19:12:50 +0000 (11:12 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 15 Dec 2016 19:30:11 +0000 (11:30 -0800)
SPLAT_TEST_FINI didn't call kfree causing memleak.

Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
module/splat/splat-internal.h

index d00af90fa748d69f5d93cc06ac249ef6ccf29d59..36cf04da1ec017a27a2872bf4c2e50805b7f6616 100644 (file)
@@ -94,6 +94,7 @@
                                 &((sub)->test_list), test_list) {      \
                 if (_test_->desc.id == tid) {                           \
                         list_del_init(&(_test_->test_list));           \
+                       kfree(_test_);                                  \
                         _flag_ = 1;                                     \
                 }                                                       \
         }                                                               \