X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fcsv.c;h=b6e535ee6b4c9b44eae4cde70052e877c1c5e2ee;hb=d6491cfcf52a74498e1becd7ef94fc8e0a5938b9;hp=f123c5d6dae1960d6fe91a53c16765d27eda4356;hpb=44dcf2017576cbd398574ac66a732a5d2b179c3c;p=collectd.git diff --git a/src/csv.c b/src/csv.c index f123c5d6..b6e535ee 100644 --- a/src/csv.c +++ b/src/csv.c @@ -17,7 +17,7 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * * Authors: - * Florian octo Forster + * Florian octo Forster * Doug MacEachern **/ @@ -25,7 +25,6 @@ #include "plugin.h" #include "common.h" #include "utils_cache.h" -#include "utils_parse_option.h" /* * Private variables @@ -215,7 +214,10 @@ static int csv_config (const char *key, const char *value) if (strcasecmp ("DataDir", key) == 0) { if (datadir != NULL) + { free (datadir); + datadir = NULL; + } if (strcasecmp ("stdout", value) == 0) { use_stdio = 1;