From 326b3037b4d97d2624fef320d190a93aa71266c5 Mon Sep 17 00:00:00 2001 From: Ayaan Khan Date: Wed, 27 May 2020 22:39:19 +0530 Subject: [PATCH] free dynamically allocated memory --- sorting/quick_sort.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sorting/quick_sort.cpp b/sorting/quick_sort.cpp index d067fa068..e09ad184c 100644 --- a/sorting/quick_sort.cpp +++ b/sorting/quick_sort.cpp @@ -89,5 +89,6 @@ int main() { quickSort(arr, 0, size-1); std::cout << "Sorted array : "; show(arr, size); + delete [] arr; return 0; }