Code

zfs_arc plugin: Plug memory leak on Linux.
authorFlorian Forster <octo@collectd.org>
Thu, 17 Dec 2015 12:34:12 +0000 (13:34 +0100)
committerFlorian Forster <octo@collectd.org>
Thu, 17 Dec 2015 12:34:22 +0000 (13:34 +0100)
CID: 42796
Signed-off-by: Florian Forster <octo@collectd.org>
src/zfs_arc.c

index 86e7d4c5d18427dea8fe8d911993e280283324f6..ab5cd64d6dcbcb7a903d3b8c5a64d8b946c5551d 100644 (file)
@@ -211,6 +211,7 @@ static int za_read (void)
                        if (llvalues == NULL)
                        {
                                ERROR ("zfs_arc plugin: `malloc' failed.");
+                               llist_destroy (ksp);
                                return (-1);
                        }
                        int j = 0;