Убрал утечку памяти

This commit is contained in:
AZEN-SGG 2024-11-27 19:02:11 +03:00
parent 673d0e250d
commit c6539e2868
4 changed files with 47 additions and 8 deletions

View file

@ -28,6 +28,9 @@ void sort(double * array, int length) {
for (int i = index; i < length; ++i) array[i] = zero[i - index];
timer += clock();
free(zero);
free(unit);
printf("Required time for sorting is %lf seconds\n", (double)timer / CLOCKS_PER_SEC);
}