mirror of
https://github.com/ioacademy-jikim/debugging
synced 2025-06-09 00:46:12 +00:00
14 lines
363 B
C
14 lines
363 B
C
#include <stdlib.h>
|
|
|
|
int main(void)
|
|
{
|
|
int i;
|
|
for (i = 0; i < 20; i++) {
|
|
int* p; // Sizes are divisible by 16 -- no slop.
|
|
p = malloc(1600); // With --peak-inaccuracy=1000, the first 10 of
|
|
p = malloc(16); // 'free' calls result in peaks, but after that,
|
|
free(p); // only every second one does.
|
|
}
|
|
return 0;
|
|
}
|