void do_simulation() { struct s* m; m = (struct s*)malloc(10000000 * sizeof(struct s)); free(m); m = (struct s*)malloc(10000000 * sizeof(struct s)); free(m); } #### void do_simulation() { struct s* m = (struct s*)malloc(10000000 * sizeof(struct s)); free(m); }