const unsigned int numAllocs = 1000; int main() { if (SDL_Init(SDL_INIT_EVENTS) != 0) { return 1; } int running = 1; while (running) { SDL_Event event; while (SDL_PollEvent(&event)) { if (event.type == SDL_QUIT) { running = 0; } } for (unsigned int i = 0; i < numAllocs; i++) { int* number = (int*)malloc(sizeof(int)); free(number); } } SDL_Quit(); }