Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- void *app_data;
- void *tmp_data;
- int i;
- app_data = malloc(1000);
- i = 0;
- while (i < 1717)
- {
- tmp_data = malloc(100);
- process_data(tmp_data);
- free(tmp_data); // meaningful free ! we'd grow at each iteration otherwise
- }
- free(app_data) // useless : we're exiting immediatly afterwards
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement