ftmemsim-valgrind/memcheck/tests/memalign_test.c
Nicholas Nethercote afebe61b37 Files updated, added and removed in order to turn the ERASER branch into HEAD
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1086
2002-09-23 09:36:25 +00:00

20 lines
313 B
C

#include <stdlib.h>
#include <stdio.h>
int main ( void )
{
void* a[10];
int i;
for (i = 0; i < 10; i++) {
a[i] = valloc(11111 * (i+1));
// printf("I acquire %p\n", a[i]);
}
for (i = 0; i < 10; i++) {
// printf("I release %p\n", a[i]);
free(a[i]);
}
free(a[9]);
return 0;
}