11 lines
193 B
C
11 lines
193 B
C
|
#include <stdlib.h>
|
||
|
#include <valgrind/memcheck.h>
|
||
|
|
||
|
int main(int argc, char *argv[])
|
||
|
{
|
||
|
void *buffer = malloc(atoi(argv[1]));
|
||
|
VALGRIND_DO_LEAK_CHECK;
|
||
|
free(buffer);
|
||
|
return 0;
|
||
|
}
|