Merge branch 'collectd-4.9' into collectd-4.10
[collectd.git] / src / curl_json.c
index 21deed6..0527dc8 100644 (file)
@@ -764,6 +764,7 @@ static int cj_curl_perform (cj_t *db, CURL *curl) /* {{{ */
   if (db->yajl == NULL)
   {
     ERROR ("curl_json plugin: yajl_alloc failed.");
+    db->yajl = yprev;
     return (-1);
   }