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-4.10' into collectd-5.3
[collectd.git]
/
src
/
utils_rrdcreate.c
diff --git
a/src/utils_rrdcreate.c
b/src/utils_rrdcreate.c
index
3b8f342
..
5368059
100644
(file)
--- a/
src/utils_rrdcreate.c
+++ b/
src/utils_rrdcreate.c
@@
-99,6
+99,7
@@
static void srrd_create_args_destroy (srrd_create_args_t *args)
sfree (args->argv[i]);
sfree (args->argv);
}
sfree (args->argv[i]);
sfree (args->argv);
}
+ sfree (args);
} /* void srrd_create_args_destroy */
static srrd_create_args_t *srrd_create_args_create (const char *filename,
} /* void srrd_create_args_destroy */
static srrd_create_args_t *srrd_create_args_create (const char *filename,
@@
-463,9
+464,8
@@
static int lock_file (char const *filename) /* {{{ */
return (EEXIST);
}
return (EEXIST);
}
- errno = 0;
status = stat (filename, &sb);
status = stat (filename, &sb);
- if (
errno != ENOENT
)
+ if (
(status == 0) || (errno != ENOENT)
)
{
pthread_mutex_unlock (&async_creation_lock);
return (EEXIST);
{
pthread_mutex_unlock (&async_creation_lock);
return (EEXIST);