Last active
August 19, 2020 08:20
-
-
Save junaidrahim/b586f1a27f2071ddd5aacced3f40d795 to your computer and use it in GitHub Desktop.
Memory Leak
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main(){ | |
int *p = new int[10]; | |
// oops forgot to delete p | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment