Browse Source

Merge branch 'sshare_cleanup' into bfgminer

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

+ 1 - 0
miner.c

@@ -5418,6 +5418,7 @@ static void clear_stratum_shares(struct pool *pool)
 	HASH_ITER(hh, stratum_shares, sshare, tmpshare) {
 		if (sshare->work.pool == pool) {
 			HASH_DEL(stratum_shares, sshare);
+			clear_work(&sshare->work);
 			free(sshare);
 			cleared++;
 		}