mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-04-02 02:02:23 +08:00
add missing free for dynamic memory allocated
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user