From: Florian Forster Date: Fri, 24 Sep 2010 09:52:52 +0000 (+0200) Subject: curl_json plugin: Restore struct when handling error. X-Git-Tag: collectd-4.9.4~10 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=95c65d827f3d75657bac91755e1bdbaeb8b4b91a;p=collectd.git curl_json plugin: Restore struct when handling error. --- diff --git a/src/curl_json.c b/src/curl_json.c index e34f90aa..0cf72ac3 100644 --- a/src/curl_json.c +++ b/src/curl_json.c @@ -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); }