@@ -2298,7 +2298,10 @@ resend:
ret = true;
out:
if (val)
+ {
json_decref(val);
+ val = NULL;
+ }
if (ret) {
if (!pool->stratum_url)