Skip to content

Instantly share code, notes, and snippets.

@copy
Created January 18, 2015 19:39
Show Gist options
  • Save copy/84a352bbd0ec1c37b223 to your computer and use it in GitHub Desktop.
Save copy/84a352bbd0ec1c37b223 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int
main(void)
{
for (;;) {
void *x = malloc(4 * 1024);
if (x == NULL) {
break;
}
memset(x, 0, 4 * 1024);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment