Skip to content

@Raynos /leak.c
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
int some_method() {
SOME_STRUCT* reallyBigObject = malloc(sizeof(SOME_STRUCT));
// FORGET TO DEREFERENCE reallyBigObject
return 42;
}
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
Something went wrong with that request. Please try again.