Browse Source

Bugfix: Free unused JSON returned when switching to Stratum

Luke Dashjr 13 years ago
parent
commit
f3d87d154d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      miner.c

+ 2 - 0
miner.c

@@ -5163,6 +5163,8 @@ tryagain:
 		}
 
 		free_work(work);
+		if (val)
+			json_decref(val);
 
 retry_stratum:
 		/* We create the stratum thread for each pool just after