cppcheck/test/testsuites/duma/leak1.c

13 lines
190 B
C

#include <stdio.h>
int main() {
printf("Hello world!\n");
int* pI;
pI = (int*)malloc(sizeof(int));
printf("Let's leak a pointer to int\n");
*pI = 303;
return 0;
}