mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
add missing free for dynamic memory allocated
This commit is contained in:
parent
6d59a29808
commit
186c7a2de8
@ -30,5 +30,7 @@ int main(int argc, char const* argv[]) {
|
|||||||
std::cout << key << " found at index " << res << std::endl;
|
std::cout << key << " found at index " << res << std::endl;
|
||||||
else
|
else
|
||||||
std::cout << key << " not found" << std::endl;
|
std::cout << key << " not found" << std::endl;
|
||||||
|
|
||||||
|
delete[] a;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user