mirror of https://github.com/xythrez/RustMP.git
Fixed segfault in omp examples
This commit is contained in:
parent
8b5bf87aab
commit
b88145b5ba
|
@ -44,8 +44,8 @@ free_all (double **matrix, double **result, size_t nsize)
|
|||
{
|
||||
size_t i;
|
||||
for (i = 0; i < nsize; i++) {
|
||||
free (matrix[nsize]);
|
||||
free (result[nsize]);
|
||||
free (matrix[i]);
|
||||
free (result[i]);
|
||||
}
|
||||
free (matrix);
|
||||
free (result);
|
||||
|
|
Loading…
Reference in New Issue