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;
|
size_t i;
|
||||||
for (i = 0; i < nsize; i++) {
|
for (i = 0; i < nsize; i++) {
|
||||||
free (matrix[nsize]);
|
free (matrix[i]);
|
||||||
free (result[nsize]);
|
free (result[i]);
|
||||||
}
|
}
|
||||||
free (matrix);
|
free (matrix);
|
||||||
free (result);
|
free (result);
|
||||||
|
|
Loading…
Reference in New Issue