From 87a521ac14e8558264e1c925435dc07822a05838 Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Mon, 18 May 2015 05:41:32 +0200 Subject: [PATCH] some clean up --- scrypt-jane.cpp | 2 +- stats.cpp | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/scrypt-jane.cpp b/scrypt-jane.cpp index 74ffda9..82556fe 100644 --- a/scrypt-jane.cpp +++ b/scrypt-jane.cpp @@ -613,7 +613,7 @@ int scanhash_scrypt_jane(int thr_id, uint32_t *pdata, const uint32_t *ptarget, u nxt = (nxt+1)&1; ++iteration; } while (n <= max_nonce && !work_restart[thr_id].restart); -out: + scrypt_free(&Vbuf); scrypt_free(&Ybuf); scrypt_free(&Xbuf[0]); scrypt_free(&Xbuf[1]); diff --git a/stats.cpp b/stats.cpp index 308bc21..d7950da 100644 --- a/stats.cpp +++ b/stats.cpp @@ -94,9 +94,6 @@ double stats_get_speed(int thr_id, double def_speed) double stats_get_gpu_speed(int gpu_id) { double speed = 0.0; - double speeds[MAX_GPUS] = { 0 }; - int records[MAX_GPUS] = { 0 }; - int count = 0; for (int thr_id=0; thr_id