Browse Source

Bugfix: Clear out stratum share work before freeing it

Luke Dashjr 13 years ago
parent
commit
f2d941debe
1 changed files with 1 additions and 0 deletions
  1. 1 0
      cgminer.c

+ 1 - 0
cgminer.c

@@ -4314,6 +4314,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++;
 		}