diff --git a/src/curl_json.c b/src/curl_json.c
index 3a5a3ab87d7bd0a8320e88e5de5c4d08947d6222..3ba55603d329342e6a30fa86b6908531e3e36e73 100644 (file)
--- a/src/curl_json.c
+++ b/src/curl_json.c
{
ERROR ("curl_json plugin: cj_config: "
"Invalid key: %s", ci->key);
+ cj_key_free (key);
return (-1);
}
db->tree = cj_avl_create();
tree = db->tree;
- name = key->path;
ptr = key->path;
if (*ptr == '/')
++ptr;
{
ERROR ("curl_json plugin: cj_config: "
"Invalid key: %s", ci->key);
+ cj_free (db);
return (-1);
}
if (status != 0)