Add 469782 to NEWS
[valgrind.git] / memcheck / tests / malloc1.c
blobdff5250eb4b9e6af494f64fb9748fc288c828d11
2 #include <stdio.h>
3 #include <stdlib.h>
5 void really ( void );
7 int main ( void )
8 {
9 really();
10 return 0;
13 void really ( void )
15 int i;
16 char* p = malloc(10);
17 for (i = 0; i < 10; i++)
18 p[i] = 'z';
19 free(p);
20 p[1] = 'z';
21 p = malloc(10);
22 p[2] = 'z';
23 p[-1] = 'z';