fix: free the allocated resources in quick sort (#923)

This commit is contained in:
KuhakuPixel 2021-12-23 04:03:59 +07:00 committed by GitHub
parent 37534f4d8c
commit ef9878627d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -93,5 +93,6 @@ int main()
printf("Sorted array: ");
display(arr, n); // Sorted array : 3 4 7 8 8 9 10 11
getchar();
free(arr);
return 0;
}