cgroups plugin: Use cu_mount_checkoption().
authorFlorian Forster <octo@collectd.org>
Wed, 28 Aug 2013 13:19:48 +0000 (15:19 +0200)
committerFlorian Forster <octo@collectd.org>
Wed, 28 Aug 2013 13:19:48 +0000 (15:19 +0200)
commit57bd4c578e337319d4a190311bb08ef98d0d7358
tree779067223af9dcc16c157e70ec365a7848d705c0
parent3dcfbf12d5ec0b62bc540ac59944ddf50c37c1f2
cgroups plugin: Use cu_mount_checkoption().

cu_mount_checkoption() behaves a bit like strstr() in that it returns a pointer
into the buffer. cu_mount_getoptionvalue() allocated memory that was never
freed, slowly leaking memory (although very little).

Github: #412
src/cgroups.c