From 6f9ba64739210907df09e862983a0b5255dae233 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 4 Jun 2016 22:15:15 +0200 Subject: [PATCH] Plug a memory leak in disk plugin Introduced by bdbc066 so no need to backport. CID 116311 --- src/disk.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/disk.c b/src/disk.c index 255d4db6..292f6e29 100644 --- a/src/disk.c +++ b/src/disk.c @@ -893,7 +893,13 @@ static int disk_read (void) #endif if (ignorelist_match (ignorelist, output_name) != 0) + { +#if HAVE_LIBUDEV + /* release udev-based alternate name, if allocated */ + sfree (output_name); +#endif continue; + } if ((ds->read_bytes != 0) || (ds->write_bytes != 0)) disk_submit (output_name, "disk_octets", -- 2.30.2