Update memcheck description of C++ new and delete
[valgrind.git] / massif / tests / peak.c
blobcba0bdb8285937e90c22edcf8fba16496e6e9695
1 #include <stdlib.h>
3 int main(void)
5 int i;
6 for (i = 0; i < 20; i++) {
7 int* p; // Sizes are divisible by 16 -- no slop.
8 p = malloc(1600); // With --peak-inaccuracy=1000, the first 10 of
9 p = malloc(16); // 'free' calls result in peaks, but after that,
10 free(p); // only every second one does.
12 return 0;