Fixed segfault in omp examples

This commit is contained in:
Yiyao Yu 2021-05-04 03:05:26 -04:00
parent 8b5bf87aab
commit b88145b5ba
1 changed files with 2 additions and 2 deletions

View File

@ -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);