mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-22 05:21:49 +03:00
fix: free the allocated resources in quick sort (#923)
This commit is contained in:
parent
37534f4d8c
commit
ef9878627d
@ -93,5 +93,6 @@ int main()
|
|||||||
printf("Sorted array: ");
|
printf("Sorted array: ");
|
||||||
display(arr, n); // Sorted array : 3 4 7 8 8 9 10 11
|
display(arr, n); // Sorted array : 3 4 7 8 8 9 10 11
|
||||||
getchar();
|
getchar();
|
||||||
|
free(arr);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user