Browse Source

Merge branch 'bugfix_ztex_errfree' into bfgminer

Conflicts:
	driver-ztex.c
Luke Dashjr 13 years ago
parent
commit
547e178863
1 changed files with 1 additions and 0 deletions
  1. 1 0
      driver-ztex.c

+ 1 - 0
driver-ztex.c

@@ -226,6 +226,7 @@ static int64_t ztex_scanhash(struct thr_info *thr, struct work *work,
 	backlog = malloc(sizeof(uint32_t) * backlog_max);
 	if (backlog == NULL) {
 		applog(LOG_ERR, "%s: failed to allocate backlog[%d]", ztex->repr, backlog_max);
+		free(lastnonce);
 		return -1;
 	}
 	memset(backlog, 0, sizeof(uint32_t) * backlog_max);