Browse Source

Merge branch 'bugfix_free_rpc_req' into bfgminer

Luke Dashjr 13 years ago
parent
commit
e5f2712c8d
2 changed files with 5 additions and 1 deletions
  1. 1 1
      libblkmaker
  2. 4 0
      miner.c

+ 1 - 1
libblkmaker

@@ -1 +1 @@
-Subproject commit a9a29294b2028dfd68fba35d42d440d3283f668d
+Subproject commit fde65d1bc043a13292986c2cab9c3cd01e50735e

+ 4 - 0
miner.c

@@ -4828,6 +4828,8 @@ tryagain:
 			true, false, &rolltime, pool, false);
 	gettimeofday(&tv_getwork_reply, NULL);
 
+	free(rpc_req);
+
 	if (val) {
 		bool rc;
 		json_t *res;
@@ -5610,6 +5612,8 @@ retry_pool:
 		if (!rpc_req)
 			goto lpfail;
 
+		free(rpc_req);
+
 		wait_lpcurrent(cp);
 
 		gettimeofday(&start, NULL);