[collectd] plugin_register_complex_read() and user_data free() on errors

Pavel V. pavel2000 at ngs.ru
Mon Dec 12 10:49:00 CET 2011


Hi.

While I'm working on my plugins, I noted some minor inconsistences in the sources and docs.
I have updated wiki (minor changes in docs), and I like to propose some source code fixes now.

The problem, which patch covers, is not serious, but I think it needs to be fixed anyway.
1) It is the lack of freeing memory when encountering errors at early stages (plugin_register_complex_read() /  create_register_callback().
2) It can be double free() when encountering errors  (at later stages) in plugin_register_complex_read()  call in some plugins.

See the patch attached.

-- 
Thanks,
Pavel.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-plugin_register_complex_read-and-user_data-free-on-e.patch
Type: application/octet-stream
Size: 3555 bytes
Desc: not available
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20111212/3b45d55a/attachment.obj>


More information about the collectd mailing list