mirror of
https://github.com/xythrez/RustMP.git
synced 2025-04-20 02:03:30 +00:00
Fixed segfault in omp examples
This commit is contained in:
parent
8b5bf87aab
commit
b88145b5ba
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue