db: caller info needs to record the -1 parameters
[smatch.git] / validation / sm_double_free1.c
bloba0ab332dd8c816738ebf6e0253db73274f545921
1 #include <stdlib.h>
3 void func (void)
5 void *x;
7 x = malloc(42);
9 free(x);
10 free(x);
12 return 0;
15 * check-name: double free test #1
16 * check-command: smatch sm_double_free1.c
18 * check-output-start
19 sm_double_free1.c +10 func(7) error: double free of 'x'
20 * check-output-end