Created
January 17, 2012 15:36
-
-
Save Raynos/1627097 to your computer and use it in GitHub Desktop.
This file contains 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 some_method() { | |
SOME_STRUCT* reallyBigObject = malloc(sizeof(SOME_STRUCT)); | |
// FORGET TO DEREFERENCE reallyBigObject | |
return 42; | |
} |
This file contains 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
var trolls = (function () { | |
var reallyBigObject = eatMemory(); | |
(function () { | |
var lulz = reallyBigObject; | |
})(); | |
// FORGET TO DEREFERENCE reallyBigObject | |
return function () { | |
return 42; | |
}; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment