Blame tests/quick-valgrind-sanity/alloc.c
|
Alexandra Hájková |
b410fd |
#include <stdlib.h>
|
|
Alexandra Hájková |
b410fd |
#include <valgrind/memcheck.h>
|
|
Alexandra Hájková |
b410fd |
|
|
Alexandra Hájková |
b410fd |
int main(int argc, char *argv[])
|
|
Alexandra Hájková |
b410fd |
{
|
|
Alexandra Hájková |
b410fd |
void *buffer = malloc(atoi(argv[1]));
|
|
Alexandra Hájková |
b410fd |
VALGRIND_DO_LEAK_CHECK;
|
|
Alexandra Hájková |
b410fd |
free(buffer);
|
|
Alexandra Hájková |
b410fd |
return 0;
|
|
Alexandra Hájková |
b410fd |
}
|