[collectd-changes] collectd, the system statistics collection daemon: Changes to 'collectd-4.6'

Florian Forster octo at verplant.org
Tue Feb 24 10:17:33 CET 2009


 src/plugin.c |   51 ++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 50 insertions(+), 1 deletions(-)

New commits:
commit 7ef8f8ed456a9a1a6cfd5b9da04836bf867d6842
Author: Florian Forster <octo at leeloo.lan.home.verplant.org>
Date:   Tue Feb 24 10:08:29 2009 +0100

    src/plugin.c: Assure that targets get dynamically allocated memory.
    
    If targets want to replace the values, they will have to use dynamically
    allocated memory. If they can't free the values, because the pointer
    might point to statically allocated memory, memory will be lost.
    
    Unfortunately stack allocation will not do, since we will then not be able
    to detect multiple replacements.
    
    To impose as little a performance issue as possible, the dynamic allo-
    cation is only done when either chain is present. If the filter mecha-
    nism is not used, the values will not be copied.




More information about the collectd-changes mailing list