Fix a small memory leak caused by bad indexing of EC recovery matrices

epoch-deletions
Vitaliy Filippov 2023-04-11 00:05:45 +03:00
parent 28d5e53c6c
commit 2f5e769a29
1 changed files with 3 additions and 3 deletions

View File

@ -142,11 +142,11 @@ inline bool operator < (const reed_sol_erased_t &a, const reed_sol_erased_t &b)
for (int i = 0; i < a.size && i < b.size; i++)
{
if (a.data[i] < b.data[i])
return -1;
return true;
else if (a.data[i] > b.data[i])
return 1;
return false;
}
return 0;
return false;
}
struct reed_sol_matrix_t