projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'collectd-5.4' into collectd-5.5
[collectd.git]
/
src
/
csv.c
diff --git
a/src/csv.c
b/src/csv.c
index
f123c5d
..
b6e535e
100644
(file)
--- a/
src/csv.c
+++ b/
src/csv.c
@@
-17,7
+17,7
@@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* Authors:
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* Authors:
- * Florian octo Forster <octo at
verplant
.org>
+ * Florian octo Forster <octo at
collectd
.org>
* Doug MacEachern <dougm@hyperic.com>
**/
* Doug MacEachern <dougm@hyperic.com>
**/
@@
-25,7
+25,6
@@
#include "plugin.h"
#include "common.h"
#include "utils_cache.h"
#include "plugin.h"
#include "common.h"
#include "utils_cache.h"
-#include "utils_parse_option.h"
/*
* Private variables
/*
* Private variables
@@
-215,7
+214,10
@@
static int csv_config (const char *key, const char *value)
if (strcasecmp ("DataDir", key) == 0)
{
if (datadir != NULL)
if (strcasecmp ("DataDir", key) == 0)
{
if (datadir != NULL)
+ {
free (datadir);
free (datadir);
+ datadir = NULL;
+ }
if (strcasecmp ("stdout", value) == 0)
{
use_stdio = 1;
if (strcasecmp ("stdout", value) == 0)
{
use_stdio = 1;