sewardj | cbdddcf | 2005-03-10 23:23:45 +0000 | [diff] [blame] | 1 | #include <stdlib.h> |
2 | #include "../memcheck.h" | ||||
3 | |||||
4 | /* | ||||
5 | Live 0-sized blocks were being reported as leaked. | ||||
6 | */ | ||||
7 | int main() | ||||
8 | { | ||||
9 | void *volatile foo = malloc(0); | ||||
10 | |||||
11 | //printf("&foo=%p foo=%p\n", &foo, foo); | ||||
12 | VALGRIND_DO_LEAK_CHECK; | ||||
13 | |||||
14 | free(foo); | ||||
15 | return 0; | ||||
16 | } |