projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initial support of GPSd in collectd.
[collectd.git]
/
src
/
curl_json.c
diff --git
a/src/curl_json.c
b/src/curl_json.c
index
1c225f7
..
3ba5560
100644
(file)
--- a/
src/curl_json.c
+++ b/
src/curl_json.c
@@
-503,6
+503,7
@@
static int cj_config_add_key (cj_t *db, /* {{{ */
{
ERROR ("curl_json plugin: cj_config: "
"Invalid key: %s", ci->key);
{
ERROR ("curl_json plugin: cj_config: "
"Invalid key: %s", ci->key);
+ cj_key_free (key);
return (-1);
}
return (-1);
}
@@
-696,6
+697,7
@@
static int cj_config_add_url (oconfig_item_t *ci) /* {{{ */
{
ERROR ("curl_json plugin: cj_config: "
"Invalid key: %s", ci->key);
{
ERROR ("curl_json plugin: cj_config: "
"Invalid key: %s", ci->key);
+ cj_free (db);
return (-1);
}
if (status != 0)
return (-1);
}
if (status != 0)