Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View leak.c
1 2 3 4 5 6 7
int some_method() {
SOME_STRUCT* reallyBigObject = malloc(sizeof(SOME_STRUCT));
 
// FORGET TO DEREFERENCE reallyBigObject
return 42;
}
View leak.c
1 2 3 4 5 6 7 8 9 10 11 12 13
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.