From ef9878627d49e770c2fa7bef7a4910689387fa94 Mon Sep 17 00:00:00 2001 From: KuhakuPixel <66545911+KuhakuPixel@users.noreply.github.com> Date: Thu, 23 Dec 2021 04:03:59 +0700 Subject: [PATCH] fix: free the allocated resources in quick sort (#923) --- sorting/quick_sort.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sorting/quick_sort.c b/sorting/quick_sort.c index 6a0c8768..886cd0f8 100644 --- a/sorting/quick_sort.c +++ b/sorting/quick_sort.c @@ -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; }