Merge branch 'collectd-4.10' into collectd-5.3
[collectd.git] / src / csv.c
index f123c5d..958e34b 100644 (file)
--- a/src/csv.c
+++ b/src/csv.c
@@ -215,7 +215,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;