Add bug 494246 to NEWS
[valgrind.git] / memcheck / tests / wrapmallocso.c
blob985ce56883d55fa6b6271e294d4c660ea422ba5e
1 #include <stdio.h>
2 #include <stdlib.h>
4 /* Fake malloc/free functions that just print something. When run
5 under memcheck these functions will be intercepted and not print
6 anything. */
8 void *malloc ( size_t size )
10 printf ("malloc\n");
11 return NULL;
14 void free (void *ptr)
16 printf ("free\n");