mirror of
https://git.wownero.com/wownero/wownero-puddle.git
synced 2024-08-15 01:03:20 +00:00
correct headers/templates free
This commit is contained in:
parent
b6dddb007b
commit
ac1c54e6a2
1 changed files with 2 additions and 4 deletions
|
@ -910,8 +910,7 @@ block_template_free(block_template_t *block_template)
|
||||||
static void
|
static void
|
||||||
block_templates_free()
|
block_templates_free()
|
||||||
{
|
{
|
||||||
size_t length = sizeof(last_block_headers)/sizeof(*last_block_headers);
|
for (size_t i=0; i<BLOCK_TEMPLATES_MAX; i++)
|
||||||
for (size_t i=0; i<length; i++)
|
|
||||||
{
|
{
|
||||||
block_template_t *bt = block_templates[i];
|
block_template_t *bt = block_templates[i];
|
||||||
if (bt != NULL)
|
if (bt != NULL)
|
||||||
|
@ -926,8 +925,7 @@ block_templates_free()
|
||||||
static void
|
static void
|
||||||
last_block_headers_free()
|
last_block_headers_free()
|
||||||
{
|
{
|
||||||
size_t length = sizeof(last_block_headers)/sizeof(*last_block_headers);
|
for (size_t i=0; i<BLOCK_HEADERS_MAX; i++)
|
||||||
for (size_t i=0; i<length; i++)
|
|
||||||
{
|
{
|
||||||
block_t *block = last_block_headers[i];
|
block_t *block = last_block_headers[i];
|
||||||
if (block != NULL)
|
if (block != NULL)
|
||||||
|
|
Loading…
Reference in a new issue