diff --git a/search/exponential_search.cpp b/search/exponential_search.cpp index 5f9e64217..79f09e38b 100644 --- a/search/exponential_search.cpp +++ b/search/exponential_search.cpp @@ -59,5 +59,6 @@ int main() { assert(struzik_search(sorted_array, 7, 50) == nullptr); assert(struzik_search(sorted_array, 7, 7) == sorted_array); // TEST CASES + delete[] sorted_array; return 0; }