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 86e7d4c..ab5cd64 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;