Code

collectd -T: fix memory leak
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 25 Jul 2015 09:57:12 +0000 (11:57 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Sat, 1 Aug 2015 07:18:57 +0000 (09:18 +0200)
src/plugin.c

index 8dfb2c28bfdad9d866fede8eae6e645fb192e4d0..5d31e46f4d8ab88bdb00a53cbfb184c12e86b24f 100644 (file)
@@ -1605,6 +1605,7 @@ int plugin_read_all_once (void)
                        return_status = -1;
                }
 
+               sfree (rf->rf_name);
                destroy_callback ((void *) rf);
        }