add missing free for dynamic memory allocated

This commit is contained in:
Krishna Vedala
2020-05-28 19:37:21 -04:00
parent 6d59a29808
commit 186c7a2de8

View File

@@ -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;
}