From: Ruben Kerkhof Date: Sat, 4 Jun 2016 20:15:15 +0000 (+0200) Subject: Plug a memory leak in disk plugin X-Git-Tag: collectd-5.6.0~235^2 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=6f9ba64739210907df09e862983a0b5255dae233;p=collectd.git Plug a memory leak in disk plugin Introduced by bdbc066 so no need to backport. CID 116311 --- 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",