Browse Source

Bugfix: benchmark: Free json_null() after use

Luke Dashjr 11 years ago
parent
commit
9d393ec71a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      miner.c

+ 1 - 0
miner.c

@@ -9499,6 +9499,7 @@ void _submit_work_async(struct work *work)
 		work_check_for_block(work);
 		work_check_for_block(work);
 		share_result(jn, jn, jn, work, false, "");
 		share_result(jn, jn, jn, work, false, "");
 		free_work(work);
 		free_work(work);
+		json_decref(jn);
 		return;
 		return;
 	}
 	}