diff --git a/search/binary_search.cpp b/search/binary_search.cpp index 9933c9816..d8a3a6631 100644 --- a/search/binary_search.cpp +++ b/search/binary_search.cpp @@ -30,5 +30,7 @@ int main(int argc, char const* argv[]) { std::cout << key << " found at index " << res << std::endl; else std::cout << key << " not found" << std::endl; + + delete[] a; return 0; }