diff --git a/omp/src/main.c b/omp/src/main.c index a8e5487..dff9ef1 100644 --- a/omp/src/main.c +++ b/omp/src/main.c @@ -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);